Model
NameValidator
Magento\Inventory\Model\Source\Validator\NameValidator
What it does
This validator ensures that inventory source names meet specific requirements before being saved.
It checks that the source name is not empty and does not contain special characters.
Developers would use this when creating or updating inventory sources to maintain data integrity and prevent invalid source names in the system.
Public Methods
- validate()