UrlKeyValidatorInterface
Magento\Backend\Model\Validator\UrlKey\UrlKeyValidatorInterface
What it does
This interface defines a contract for URL key validation in Magento 2's backend.
Developers implement this interface to create custom validators that check if URL keys meet specific requirements (format, uniqueness, allowed characters, etc.) and return validation results as an array.
It's commonly used when validating URL rewrites for products, categories, CMS pages, and other entities that need SEO-friendly URLs.
Public Methods
- validate()