Log in
Model

StockSourceLinksValidator

Magento\Inventory\Model\StockSourceLink\Validator\StockSourceLinksValidator

What it does

This validator class validates an array of StockSourceLink entities by iterating through each link and applying individual validation rules.

Developers use this when assigning multiple inventory sources to a stock and need to ensure all links meet the required validation criteria before saving them to the database.

Public Methods

  • validate()