Log in
Model

AbstractEntity

Magento\ImportExport\Model\Import\Entity\AbstractEntity

What it does

This is the base class for all import entity models in Magento 2's Import/Export functionality.

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

It handles common import operations like error tracking, batch processing, data validation, and provides helper methods for attribute validation and source data management.

Public Methods

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