StoreNameValidator
Magento\Store\Model\Validation\StoreNameValidator
What it does
This validator class ensures that a store name is not empty when creating or updating a store in Magento 2.
Developers use this class to validate store name input before saving store configuration, preventing stores from being created without a name.
It's typically called automatically during store creation/editing through the admin panel or programmatically via the store repository.
Public Methods
- isValid()