Model

GetLegacyStockItems

Magento\InventoryConfiguration\Model\GetLegacyStockItems

What it does

This class retrieves legacy CatalogInventory stock item records for given product SKUs.

Developers use it when working with Magento's Multi-Source Inventory (MSI) system but need to access traditional single-stock inventory data, typically for backward compatibility or when interfacing with legacy inventory management code.

Public Methods

  • execute()