Log in
Model

GetAssignedSalesChannelsDataForStock

Magento\InventorySales\Model\ResourceModel\GetAssignedSalesChannelsDataForStock

What it does

This class retrieves all sales channels (e.g., websites, stores) that are assigned to a specific inventory stock 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 source, such as when validating inventory availability or managing stock assignments across different storefronts.

Public Methods

  • execute()