Log in
Model

Validator

Magento\CatalogUrlRewrite\Model\Product\Validator

What it does

This validator ensures that product URL keys don't conflict with existing URL rewrites in the store.

Developers use this class when saving or updating products to prevent duplicate URL paths that would cause routing issues.

It checks all store views where the product is assigned and throws an exception if a URL key collision is detected with another product.

Public Methods

  • validateUrlKeyConflicts()