Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit b01f7aa

Browse files
committed
Minor adjustments
1 parent e094233 commit b01f7aa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

guides/v2.2/ext-best-practices/tutorials/custom-import-entity.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ contributor_name: Atwix
55
contributor_link: https://www.atwix.com/
66
---
77

8-
This tutorial shows you how to add a new import entity, that can be used to import data into your custom module's table, by extending the [Magento/ImportExport/Model/Import/Entity/AbstractEntity][0]{:target="_blank"} class.
8+
This tutorial shows you how to extend the [Magento/ImportExport/Model/Import/Entity/AbstractEntity][0]{:target="_blank"} class to import data into your custom module's table.
99
The current import entities can be found in **System** > **Import**:
1010

1111
- Advanced Pricing
@@ -14,13 +14,13 @@ The current import entities can be found in **System** > **Import**:
1414
- Customers Main File
1515
- Customer Addresses
1616

17-
For the beginning let's suppose that we have a custom table with the following structure:
17+
To begin, let's suppose we have a custom table with the following structure:
1818

1919
| entity_id | name | duration |
2020
| --- | --- | --- |
2121
| | | |
2222

23-
## Step 1: Adding a new Entity Type
23+
## Step 1: Adding a New Entity Type
2424

2525
Declaring our new import entity:
2626

@@ -34,7 +34,7 @@ Declaring our new import entity:
3434
</config>
3535
```
3636

37-
As we extend the **Magento_ImportExport** module, we should also add a dependency to it in `module.xml` file.
37+
As we extend the **Magento_ImportExport** module, we should also add a dependency to it in the `module.xml` file.
3838

3939
> `etc/module.xml`
4040
@@ -357,7 +357,7 @@ As result, we should be able to see the new Entity Type:
357357

358358
![Import Entity]({{ site.baseurl }}/common/images/ext-best-practices/import-entity.png)
359359

360-
Here is a sample csv file that can be used for importing data into our table.
360+
Here is a sample csv file we can use to import data into our table.
361361

362362
```text
363363
entity_id,name,duration
@@ -366,6 +366,6 @@ entity_id,name,duration
366366
```
367367

368368
{:.bs-callout .bs-callout-info}
369-
For updating the table's data, the `entity_id` value is required to be provided for the respectively row.
369+
For updating the table's data, you must provide the `entity_id` value for each row.
370370

371371
[0]: {{ site.mage2bloburl }}/{{ page.guide_version }}/app/code/Magento/ImportExport/Model/Import/Entity/AbstractEntity.php

0 commit comments

Comments
 (0)