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:

Pura
2 months ago
Ah, the joys of working with dependencies. I can't wait to spend hours trying to untangle this web of modules just to hide some customer feedback.
upvoted 0 times
Jesusita
2 months ago
I feel your pain. Dependencies can be a real headache sometimes.
upvoted 0 times
...
Dominga
2 months ago
B) Turn-off Review module output globally by extending /vendor/magento/module-backend/etc/module.xml
upvoted 0 times
...
Rueben
2 months ago
C) Create plugin or Override the class \Magento\Framework\View\Element\AbstractBlock and toHtml() method, and implement the logic to return empty data in case of review module's block instance is present.
upvoted 0 times
...
...
Julene
2 months ago
Wait, we're supposed to remove the customer reviews? But how will I know which products to avoid buying now? The horror!
upvoted 0 times
...
Felicitas
3 months ago
I think option A is a bit overkill. Disabling the entire module's output globally could have widespread implications. A more targeted approach would be better.
upvoted 0 times
Ranee
1 months ago
D) Create plugin or Override the class \\Magento\\Backend\\Block\\Template and isOutputEnabled() method, and implement the logic to return false value in case of review module's block instance is present.
upvoted 0 times
...
Sharan
2 months ago
C) Create plugin or Override the class \\Magento\\Framework\\View\\Element\\AbstractBlock and toHtml() method, and implement the logic to return empty data in case of review module's block instance is present.
upvoted 0 times
...
...
Karl
3 months ago
Option D looks interesting, but I'm not sure if overriding the isOutputEnabled() method is the best approach. It might be better to focus on the specific review module's blocks.
upvoted 0 times
Gerardo
1 months ago
I think focusing on the specific review module's blocks might be a better approach.
upvoted 0 times
...
Alaine
2 months ago
D) Create plugin or Override the class \\Magento\\Backend\\Block\\Template and isOutputEnabled() method, and implement the logic to return false value in case of review module's block instance is present.
upvoted 0 times
...
Lai
2 months ago
C) Create plugin or Override the class \\Magento\\Framework\\View\\Element\\AbstractBlock and toHtml() method, and implement the logic to return empty data in case of review module's block instance is present.
upvoted 0 times
...
...
Ellsworth
3 months 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
Maile
2 months ago
D) Create plugin or Override the class \\Magento\\Backend\\Block\\Template and isOutputEnabled() method, and implement the logic to return false value in case of review module's block instance is present.
upvoted 0 times
...
Elvera
3 months ago
C) Create plugin or Override the class \\Magento\\Framework\\View\\Element\\AbstractBlock and toHtml() method, and implement the logic to return empty data in case of review module's block instance is present.
upvoted 0 times
...
...
Adela
4 months 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
Venita
3 months ago
That sounds like a good solution. It allows us to specifically target the review module's output.
upvoted 0 times
...
Cassie
3 months ago
C) Create plugin or Override the class \Magento\Framework\View\Element\AbstractBlock and toHtml() method, and implement the logic to return empty data in case of review module's block instance is present.
upvoted 0 times
...
...
Ira
4 months 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
4 months 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
4 months 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