Log in
Model

SchemaLocator

Magento\Widget\Model\Config\SchemaLocator

What it does

This class locates and provides paths to XSD schema files used for validating widget configuration XML files in Magento 2.

Developers use this class when the system needs to validate widget.xml files - both individual files and merged configurations - to ensure they follow the correct XML structure and rules defined in the widget schemas.

Public Methods

  • getSchema()
  • getPerFileSchema()