Log in
Model

GetAssignedSalesChannelsForStock

Magento\InventorySales\Model\GetAssignedSalesChannelsForStock

What it does

This class retrieves all sales channels (like websites, stores) that are assigned to a specific stock/inventory source in Magento's Multi-Source Inventory (MSI) system.

Developers use this when they need to determine which sales channels are linked to a particular stock ID, such as when managing inventory allocation across multiple websites or store views.

Public Methods

  • execute()