Log in
Interface

StockSourceLinkValidatorInterface

Magento\InventoryApi\Model\StockSourceLinkValidatorInterface

What it does

This interface defines a contract for validating stock-source link relationships in Magento's Multi-Source Inventory (MSI) system.

Developers implement this interface to add custom validation rules when linking inventory sources to stocks, ensuring data integrity before associations are saved.

It serves as an extension point for custom validation logic beyond Magento's base validation.

Public Methods

  • validate()