PriorityBasedAlgorithm
Magento\InventorySourceSelection\Model\Algorithms\PriorityBasedAlgorithm
What it does
This class implements a priority-based source selection algorithm for Magento's Multi-Source Inventory (MSI).
It determines which warehouse/source should fulfill inventory requests by iterating through enabled sources in priority order, making it useful when you want to ship products from higher-priority locations first.
Developers use this when implementing inventory allocation strategies that favor specific sources based on their configured priority.
Public Methods
- execute()