Model
AssignToDefaultStockDefaultSourceValidator
Magento\InventoryCatalog\Model\StockSourceLink\Validator\AssignToDefaultStockDefaultSourceValidator
What it does
This validator ensures that Default Stock and Default Source can only be linked together in their initial assignment, preventing any other stock-source combinations involving default entities.
Developers use this to maintain the integrity of Magento's Single Source Mode, which relies on the Default Source being exclusively linked to Default Stock.
Public Methods
- validate()