The module MyCompany_MyModule will add a new page in the admin interface to display a custom entity in a grid.
You created a controller for this grid MyCompanyMyModuleControllerAdminhtmlCustomEntityIndex
Which two actions are required to make the new page accessible at the https://your.store.base.url/admin/my_module/custom_entity URL? (Choose two.)
A. Register my_module route for the AdminRouter in MyCompany/MyModule/etc/adminhtml/di.xml
B. Create a new menu item in MyCompany/MyModule/etc/adminhtml/menu.xml
C. Specify the my_module/custom_entity URL using a @route annotation in the action controller execute() method
D. Register my_module route in MyCompany/MyModule/etc/adminhtml/routes.xml
The Correct Answer is BD
Answer 😀
Regarding option B, we have a direct URL so not need to menu
Regarding the option C, Magento is not used @route annotation but the symphony is this type of code please refer:
/**
* @Route(“/post/delete/{id}”, name=”delete_post_modal”)
*/
public function deleteAction(Post $post)
{
// …
}
Answer:- D
https://www.linkedin.com/in/magento-two-developer/
@route annotation is used in Symfony but not Magento so the correct Answer is D.
Correction Answer is B and D
Correct Answer D https://devdocs.magento.com/guides/v2.4/extension-dev-guide/admin-grid.html#1-create-a-backbone-module
i believe is B and D, @route annotation whats ?