Log in
Model

SchemaLocator

Magento\Payment\Model\Config\SchemaLocator

What it does

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

Developers use this class when working with payment method configurations to ensure XML files follow the correct structure - it provides one schema for validating individual payment config files and another for validating merged configurations.

Public Methods

  • getSchema()
  • getPerFileSchema()