Log in
Model

Reader

Magento\Widget\Model\Config\Reader

What it does

This class reads and parses widget.xml configuration files from Magento 2 modules.

It extends the filesystem configuration reader to specifically handle widget definitions, merging configurations from multiple modules based on widget IDs and parameter names.

Developers use this when they need to programmatically access widget configurations or when creating custom widgets that need to read configuration data.

Public Methods

  • readFile()