In a code review of a merchant's site you have discovered that there are multiple observers for the checkout_submit_all_after event. After closer inspection, you notice one of these observers is relying on the others being executed before it is called. What risk does this pose, and how can it be mitigated?
A) There is no risk posed as long as each event observer specifies a correct sortOrder. Nothing needs to be changed.
B) Event observers are fired in alphabetical order of the observer name. There is no risk here.
C) Magento only supports one observer per event. These observers will need to be combined into a single point of customization.
D) Order of listener execution cannot be guaranteed, resulting in a fragile implementation. This code should be re-worked using plugins
Correct Answer:
Verified
Q68: You added a plugin declaration to MyCompany/MyModule/etc/di.xml:
Q69: You have been asked to display details
Q70: How can you render a text on
Q71: How do you obtain customer information in
Q72: You are reviewing a theme in app/design/frontend/MyCompany/MyTheme
Q74: Where do you change the frontName for
Q75: Which two ways does Magento persist category
Q76: In the module located at app/code/MyCompany/MyModule there
Q77: You have created a new block and
Q78: What scopes are available for customer attributes?
A)
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents