Log in
Model

StockSourceLinksSave

Magento\Inventory\Model\StockSourceLink\Command\StockSourceLinksSave

What it does

This class handles saving multiple stock-source links in Magento's Multi-Source Inventory (MSI) system.

Developers use this when they need to associate inventory sources with stocks, such as linking a warehouse or store location to a specific stock.

It validates the links before saving and throws appropriate exceptions if validation fails or the save operation encounters errors.

Public Methods

  • execute()