Log in
Model

DependencyDecorator

Magento\Indexer\Model\Indexer\DependencyDecorator

What it does

This decorator class wraps Magento 2 indexers to automatically handle dependencies between them.

When an indexer is invalidated or reindexed, it ensures that any dependent indexers are also invalidated or reindexed in the correct order.

Developers don't typically instantiate this directly - Magento uses it internally to manage indexer relationships defined in indexer.xml configuration files.

Public Methods

  • getId()
  • getViewId()
  • getActionClass()
  • getTitle()
  • getDescription()
  • getFields()
  • getSources()
  • getHandlers()
  • load()
  • getView()
  • getState()
  • setState()
  • isScheduled()
  • setScheduled()
  • isValid()
  • isInvalid()
  • isWorking()
  • invalidate()
  • getStatus()
  • getLatestUpdated()
  • reindexAll()
  • reindexRow()
  • reindexList()