Log in
Model

GetSourcesAssignedToStockOrderedByPriority

Magento\Inventory\Model\Source\Command\GetSourcesAssignedToStockOrderedByPriority

What it does

This class retrieves all inventory sources assigned to a specific stock, ordered by their priority from lowest to highest.

Developers use this when they need to determine which warehouses or physical locations are linked to a stock and the sequence in which inventory should be allocated from them, which is critical for multi-source inventory fulfillment.

Public Methods

  • execute()