Log in
Model

GetAssignedStockIdForWebsite

Magento\InventorySales\Model\ResourceModel\GetAssignedStockIdForWebsite

What it does

This class retrieves the assigned stock ID for a given website in Magento's Multi-Source Inventory (MSI) system.

Developers use this when they need to determine which inventory stock is associated with a specific website, enabling proper inventory management across multiple websites in a Magento installation.

Public Methods

  • execute()