Log in
Model

PriorityValidator

Magento\Inventory\Model\StockSourceLink\Validator\PriorityValidator

What it does

This validator ensures that the priority value assigned to a stock-source link is valid by checking that it's greater than zero.

Developers use this class when creating or updating stock-source link relationships to ensure proper ordering and prioritization of inventory sources within a stock.

Public Methods

  • validate()