Last active
March 19, 2021 17:00
-
-
Save cagartner/06a644b4106b2ff91dd4ed86b1a9bcad to your computer and use it in GitHub Desktop.
Add a link to logout user in my account menu in magento 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!-- | |
/** | |
* Copyright © Magento, Inc. All rights reserved. | |
* See COPYING.txt for license details. | |
*/ | |
--> | |
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="2columns-left" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd" label="Customer My Account (All Pages)" design_abstraction="custom"> | |
<body> | |
<referenceBlock name="customer_account_navigation"> | |
<block class="Magento\Framework\View\Element\Html\Link\Current" | |
name="customer-account-navigation-logout-link"> | |
<arguments> | |
<argument name="path" xsi:type="string">customer/account/logout</argument> | |
<argument name="label" xsi:type="string">Logout</argument> | |
</arguments> | |
</block> | |
</referenceBlock> | |
</body> | |
</page> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment