Model
Validator
Magento\Catalog\Model\Product\Validator
What it does
This class serves as a wrapper for validating product data in Magento 2.
Developers would use this validator when they need to verify that a product object contains valid data before saving or processing it, typically in controllers or custom modules that handle product operations.
It delegates the actual validation logic to the Product model's validate method.
Public Methods
- validate()