How do you accomplish this?

You need to include the customer account menu on a custom storefront page, but only when the method MyCompany\lyModuleViewModelMyView: :hasCustomerMenu() returns true.

How do you accomplish this?
A . In the page action controller, inject the Layoutinterface and if hasCustonerMenu() returns true, call $layout->addHandle(‘custooer_account’)
B. Create an after plugin for MagentoFrameworkViewUyoutInterface::getOutput() and if hasCustomerMenuO returns true, Call $subject->addHandled customer_account’)
C. In the page action controller, if hasCustomer-Menu() returns true, before returning the page result call Spage->addHandleC custon»r_account’)
D. In the page’s layout XML file, add <update handle="customer_account" if="MyCompanyMyModuleViewModelMyView::hasCustomerMenu" >

Answer: D

Latest AD0-E704 Dumps Valid Version with 89 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments