Log in
Model

GetStockItemsData

Magento\InventoryIndexer\Model\ResourceModel\GetStockItemsData

What it does

This class retrieves stock item data (quantity and salability status) for multiple product SKUs from a specific stock.

Developers use this when they need to check inventory availability for multiple products at once, such as during checkout or product listing pages.

It handles both default stock (using legacy tables) and custom stocks (using MSI index tables).

Public Methods

  • execute()