Log in
Model

GetList

Magento\Inventory\Model\Stock\Command\GetList

What it does

This class retrieves a filtered and paginated list of inventory stock records in Magento 2.

Developers use this when they need to query stocks with specific criteria like filtering, sorting, or pagination, typically in custom modules or API implementations that need to display or process multiple stock configurations.

Public Methods

  • execute()