Model

AbstractAction

Magento\CatalogInventory\Model\Indexer\Stock\AbstractAction

What it does

This abstract base class handles the reindexing of product stock status data in Magento 2.

Developers would extend this class when creating custom stock indexers or working with inventory-related indexing operations.

It manages the synchronization between temporary and permanent index tables, handles parent-child product relationships, and triggers cache cleaning after reindexing.

Public Methods

  • execute()
  • getRelationsByChild()
  • reindexAll()
  • useIdxTable()
  • clearTemporaryIndexTable()