Model

Stock

Magento\CatalogInventory\Model\Indexer\Stock

What it does

This class manages the catalog inventory stock indexer, which updates the indexed stock status data for products.

Developers use this when they need to trigger stock reindexing programmatically, either for individual products, lists of products, or the entire catalog.

It's called automatically when product stock changes or can be invoked manually for custom inventory updates.

Public Methods

  • execute()
  • executeFull()
  • executeList()
  • executeRow()