Creating a system configuration file (system.xml)

The system.xml file is essentially the Stores | Configuration interface builder. Entries we define in our module's system.xml file will render certain parts of the Stores | Configuration interface under the Magento admin area.

Unlike the previous two XML files, this configuration file is located under an additional subfolder, so its full path goes like app/code/Foggyline/Helpdesk/etc/adminhtml/system.xml, with content as follows:

<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module: Magento_Config:etc/system_file.xsd"> <system> <tab id="foggyline" translate="label" sortOrder="200"> <label>Foggyline</label> </tab> <section ...

Get Magento 2 Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.