How do you create new XML configuration type in Magento 2?

Questions:

  • How do you create a new XML configuration type in Magento 2?
  • What are the steps to create a new XML configuration type in Magento 2?

Sample Answer:

Following are the steps to create a new XML configuration type in Magento 2:

  • Create the XSD Schema file.
  • Create the XML configuration file.
  • Create a loader (reader) class file by extending Magento\Framework\Config\Reader\Filesystem class.
  • Define the configurator object in the di.xml file.

Related Posts