Log in
Model

IsSingleSourceMode

Magento\InventoryCatalog\Model\IsSingleSourceMode

What it does

This class determines if Magento is running in single source mode by checking if there are fewer than 2 enabled inventory sources.

Developers use this when they need to conditionally execute logic based on whether Multi-Source Inventory (MSI) is being utilized or if the store is operating with just one inventory source.

Public Methods

  • execute()