Log in
Model

StoreValidator

Magento\Store\Model\Validation\StoreValidator

What it does

This class validates Store model objects in Magento 2 by applying a set of configurable validation rules.

Developers use this validator when creating or updating stores to ensure data integrity before saving to the database.

The validator accepts custom rules during instantiation and executes them against store data objects.

Public Methods

  • isValid()