Log in
Model

AbstractEntity

Magento\ImportExport\Model\Import\AbstractEntity

What it does

This abstract class provides the foundation for implementing custom import entities in Magento 2's ImportExport module.

Developers extend this class when creating custom importers for new entity types, implementing required methods like _importData(), getEntityTypeCode(), and validateRow() to define how their specific data should be imported and validated.

It handles common import operations like data validation, batch processing, error handling, and tracking import statistics.

Public Methods

  • getErrorAggregator()
  • getEntityTypeCode()
  • addRowError()
  • addMessageTemplate()
  • getBehavior()
  • getDefaultBehavior()
  • getProcessedEntitiesCount()
  • getProcessedRowsCount()
  • getSource()
  • importData()
  • isAttributeParticular()
  • getMasterAttributeCode()
  • isAttributeValid()
  • isImportAllowed()
  • isRowAllowedToImport()
  • isNeedToLogInHistory()
  • validateRow()
  • setParameters()
  • setSource()
  • validateData()
  • getCreatedItemsCount()
  • getUpdatedItemsCount()
  • getDeletedItemsCount()
  • getValidColumnNames()
  • getIds()
  • setIds()
  • getDataSourceModel()