Interface
ValidatorInterface
Magento\Cms\Model\PageRepository\ValidatorInterface
What it does
This interface defines a contract for validating CMS pages before they are saved or updated in Magento 2.
Developers implement this interface to create custom validation rules for CMS pages, ensuring page data meets specific business requirements.
When a page fails validation, a LocalizedException is thrown with details about why the validation failed.
Public Methods
- validate()