Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
  3. <update handle="customer_account" />
  4. </page>
  5.  
  6. public function aroundExecute(MagentoCmsControllerPageView $subject, callable $proceed)
  7. {
  8. $pageId = $subject->getRequest()->getParam('page_id', $subject->getRequest()->getParam('id', false));
  9.  
  10. // Some code that determines whether or not this CMS page should have the dashboard navigation:
  11. if ( ... ) {
  12. // Add customer_account layout update:
  13. // This is the part that doesn't work...
  14. $resultPage->getLayout()->getUpdate()->addUpdate('customer_account');
  15. }
  16.  
  17. return $resultPage;
  18. }
  19.  
  20. <update handle="customer_account" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement