Model
SourceCodeValidator
Magento\Inventory\Model\StockSourceLink\Validator\SourceCodeValidator
What it does
This validator ensures that source codes in stock-source links are valid by checking they are not empty and contain no whitespace.
Developers use this class when creating or updating stock-source link relationships in Magento's Multi-Source Inventory (MSI) system to ensure data integrity before saving to the database.
Public Methods
- validate()