Log in
Interface

GetAssignedSalesChannelsForStockInterface

Magento\InventorySalesApi\Model\GetAssignedSalesChannelsForStockInterface

What it does

This interface defines a contract for retrieving all sales channels (like websites or stores) that are assigned to a specific inventory stock in Magento's Multi-Source Inventory system.

Developers use this when they need to determine which sales channels are linked to a particular stock source, such as during inventory allocation or order processing.

It's designed as an SPI (Service Provider Interface), allowing custom implementations to replace the default channel management strategy.

Public Methods

  • execute()