Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - 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
26 days 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
10 days ago
I feel your pain. Dependencies can be a real headache sometimes.
upvoted 0 times
...
Dominga
12 days ago
B) Turn-off Review module output globally by extending /vendor/magento/module-backend/etc/module.xml
upvoted 0 times
...
Rueben
17 days 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
28 days 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
1 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
Sharan
15 days 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
1 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
Alaine
5 days 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
8 days 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
2 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
18 days 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
29 days 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
2 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
1 months ago
That sounds like a good solution. It allows us to specifically target the review module's output.
upvoted 0 times
...
Cassie
1 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
2 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
3 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
3 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
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