Log in
Model

PathValidator

Magento\Theme\Model\Config\PathValidator

What it does

This class validates configuration paths specifically for theme and design-related settings in Magento 2.

It extends the base PathValidator to handle 'design/' prefixed paths by checking them against both standard system configuration fields and design configuration fields from the DesignConfigRepository.

Developers would use this when programmatically validating configuration paths to ensure they exist before attempting to save or retrieve design settings.

Public Methods

  • validate()