Log in
Model

StoreNameValidator

Magento\Store\Model\Validation\StoreNameValidator

What it does

This validator class checks if a store name is valid by ensuring it is not empty.

Developers use this class when creating or updating stores to validate that a required store name has been provided before saving the data.

It extends Magento's AbstractValidator and uses Laminas NotEmpty validator internally.

Public Methods

  • isValid()