What is the result of specifying resource="Magento_Catalog::catalog"?

You are adding an entry to the backend menu. To do so you open a core etc/adminhtml/menu.xml file as a reference. In the file you see the node:

What is the result of specifying resource="Magento_Catalog::catalog"?
A. The menu item will only be visible to users who are assigned to a role with access to the matching ACL resource
B. The menu item will only be visible if the class method specified by the resource returns a true value
C. The last selected menu item for a user is stored in the DB so the previously visited page can be restored on the next login
D. The resource is used to locate the correct translation for the attributes listed in title="…"

Download Printable PDF. VALID exam to help you PASS.

6 thoughts on “What is the result of specifying resource="Magento_Catalog::catalog"?

  1. Correct Answer: A

    Explanation:- The resource attribute defines the ACL rule a user must have in order to access this Menu Item. Normally, you’d define your own ACL rule in the same module, and use it here. For simplicity’s sake, we’re using a predefined ACL rule (Magento_Backend::content) from a standard Magento module. If the logged-in user does not have access to the configured ACL rule, the Menu Item will not render for them.

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.