When creating a Magento 2 extension with an acl.xml file, you may encounter the error The attribute ‘title’ is required but missing . You can resolve it by adding a title attribute to your resource element:
|
1 2 3 4 5 6 7 8 9 10 11 12 |
<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Acl/etc/acl.xsd"> <acl> <resources> <resource id="Magento_Backend::admin"> <resource id="Magento_Backend::stores"> <resource id="Vendor_Whatever::config" title="Foobar" sortOrder="90" /> </resource> </resource> </resources> </acl> </config> |
In this example,…