Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe Exam AD0-E704 Topic 2 Question 16 Discussion

Actual exam question for Adobe's AD0-E704 exam
Question #: 16
Topic #: 2
[All AD0-E704 Questions]

Suppose you are asked to disable/remove the customer review related functionalities. You can not disable the review module directly because the customer module depends on it. What is the possible way to remove all HTML outputs of the review module, from the frontend and backend? :

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Ellsworth
2 days ago
I'm not sure about option B. Extending the module.xml file to disable the output globally might have unexpected side effects on other parts of the system.
upvoted 0 times
...
Adela
12 days ago
Option C seems like the most direct approach. Overriding the toHtml() method gives us the control to remove the output without affecting the rest of the application.
upvoted 0 times
...
Ira
16 days ago
That makes sense. It's important to handle the dependency issue properly to ensure the customer module still functions correctly after disabling the review functionalities.
upvoted 0 times
...
Larue
27 days ago
I agree with Malcom. By implementing the logic to return empty data in case of review module's block instance is present, we can remove all HTML outputs of the review module.
upvoted 0 times
...
Malcom
28 days ago
I think the possible way is to create a plugin or override the class \Magento\Framework\View\Element\AbstractBlock and toHtml() method.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77