Log in
Model

GetDefaultSourceSelectionAlgorithmCode

Magento\InventorySourceSelection\Model\GetDefaultSourceSelectionAlgorithmCode

What it does

This class returns the default source selection algorithm code used by Magento's Multi-Source Inventory (MSI) system.

Developers use this when they need to programmatically retrieve the default algorithm ('priority') that determines which inventory source to use when fulfilling orders across multiple warehouses or locations.

Public Methods

  • execute()