Log in
Interface

GetListInterface

Magento\Inventory\Model\Stock\Command\GetListInterface

What it does

This interface defines a command for retrieving a list of inventory stocks based on search criteria.

Developers use this as a service contract to implement custom stock retrieval logic, typically extending it to add filtering, sorting, or pagination capabilities.

It's part of Magento's Multi-Source Inventory (MSI) system and acts as an SPI layer between the StockRepository and actual data retrieval logic.

Public Methods

  • execute()