Skip to content

Custom Export entity in magento 2

vendor/magento/module-customer-import-export/etc/export.xml

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_ImportExport:etc/export.xsd">
    <entity name="customer" label="Customers Main File" model="MagentoCustomerImportExportModelExportCustomer" entityAttributeFilterType="customer"/>
    <entity name="customer_address" label="Customer Addresses" model="MagentoCustomerImportExportModelExportAddress" entityAttributeFilterType="customer" />
    <fileFormat name="csv" label="CSV" model="MagentoImportExportModelExportAdapterCsv" />
</config>

I would like to ask that what is the usage of entityAttributeFilterType. I have search but did not find any place use that.

Seem that all export model they implement vendor/magento/module-import-export/Model/Export/Entity/AbstractEntity.php or vendor/magento/module-import-export/Model/Export/Entity/AbstractEav.php Do you know what is difference between those or which case is suitable for each one.