Log in
Model

Validator

Magento\Catalog\Model\Product\Validator

What it does

This validator class acts as a wrapper for product validation in Magento 2.

Developers would use this class when they need to validate product data during requests, such as when saving or updating products through controllers or API endpoints.

It delegates the actual validation logic to the Product model's validate method while accepting request and response objects for context.

Public Methods

  • validate()