Log in
Model

IncludeElement

Magento\Config\Model\Config\Compiler\IncludeElement

What it does

This class processes XML include directives in Magento 2 configuration files, specifically in the adminhtml area.

When a configuration file contains an <include> element with a path attribute, this compiler loads the referenced XML file from another module and merges its content into the parent document.

Developers use this to modularize and reuse configuration snippets across different admin system configuration files.

Public Methods

  • compile()