Log in
Model

Import

Magento\ImportExport\Model\Import

What it does

This class handles the core import functionality in Magento 2, managing the entire import process from file upload and validation to data processing and indexer invalidation.

Developers use this class when implementing custom importers, validating import files, or programmatically importing data into Magento.

It supports various import behaviors (append, replace, delete, add/update) and provides error aggregation and reporting capabilities.

Public Methods

  • getOperationResultMessages()
  • getAttributeType()
  • getDataSourceModel()
  • getDefaultBehavior()
  • getEntity()
  • getProcessedEntitiesCount()
  • getProcessedRowsCount()
  • getWorkingDir()
  • importSource()
  • isImportAllowed()
  • getErrorAggregator()
  • uploadSource()
  • uploadFileAndGetSource()
  • validateSource()
  • invalidateIndex()
  • getEntityBehaviors()
  • getUniqueEntityBehaviors()
  • isReportEntityType()
  • getCreatedItemsCount()
  • getUpdatedItemsCount()
  • getDeletedItemsCount()
  • getValidatedIds()