Model
CodeValidator
Magento\Inventory\Model\Source\Validator\CodeValidator
What it does
This validator ensures that inventory source codes meet specific format requirements before being saved.
Developers use this class when creating or updating inventory sources to validate that source codes are not empty, contain no whitespace, and have no special characters, ensuring clean and consistent source identifiers throughout the system.
Public Methods
- validate()