QuestionQ28
Adobe Commerce Architecture and Customization TechniquesAn Adobe Commerce Developer wants to add an action to an existing route without interfering with the functionality of the original route’s actions.
What must the developer do to ensure the new action works without side effects in the original module?
- A In the route declaration, use the before or after parameters to load their module in before or after the original module.
- B Inject the new action into the standard router constructor's $actionList parameter.
- C Add the action into to the Controllers/front_name/ in My_Module, Magento will automatically detect and use it.
Community Discussion