Log in
Model

SchemaLocator

Magento\Theme\Model\Layout\Config\SchemaLocator

What it does

This class locates and provides the XSD schema file path used to validate page layout XML configuration files in Magento 2.

Developers typically don't interact with this class directly - it's used internally by Magento's configuration system to ensure layout XML files follow the correct structure and validation rules defined in layouts.xsd.

Public Methods

  • getSchema()
  • getPerFileSchema()