Log in
Model

AbstractEntity

Magento\ImportExport\Model\Export\AbstractEntity

What it does

This abstract base class provides the core functionality for exporting Magento 2 entities (like products, customers, categories) to various file formats.

Developers extend this class when creating custom export entities, implementing the abstract methods to define what data to export and how to format it.

It handles error tracking, attribute filtering, pagination, and integration with export writers.

Public Methods

  • addRowError()
  • addMessageTemplate()
  • retrieveMessageTemplate()
  • export()
  • exportItem()
  • getEntityTypeCode()
  • getAttributeCollection()
  • filterAttributeCollection()
  • getErrorMessages()
  • getErrorsCount()
  • getInvalidRowsCount()
  • getProcessedEntitiesCount()
  • getProcessedRowsCount()
  • getWriter()
  • setParameters()
  • setWriter()
  • setFileName()
  • getFileName()
  • getDisabledAttributes()