Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-backend
Controller
Adminhtml
Auth
Logout.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Backend\Controller\Adminhtml\Auth
;
8
9
use
Magento\Framework\App\Action\HttpGetActionInterface
as HttpGet;
10
use
Magento\Framework\App\Action\HttpPostActionInterface
as HttpPost;
11
12
class
Logout
extends
\Magento\Backend\Controller\Adminhtml\Auth
implements HttpGet, HttpPost
13
{
19
public
function
execute
()
20
{
21
$this->_auth->logout();
22
$this->messageManager->addSuccessMessage(
__
(
'You have logged out.'
));
23
25
$resultRedirect = $this->resultRedirectFactory->create();
26
return
$resultRedirect->setPath($this->_helper->getHomePageUrl());
27
}
28
}
Magento\Framework\App\Action\HttpGetActionInterface
Definition:
HttpGetActionInterface.php:16
Magento\Backend\Controller\Adminhtml\Auth\Logout
Definition:
Logout.php:12
__
__()
Definition:
__.php:13
Magento\Backend\Controller\Adminhtml\Auth
Definition:
Auth.php:13
Magento\Backend\Controller\Adminhtml\Auth
Definition:
DeniedIframe.php:7
Magento\Framework\App\ActionInterface\execute
execute()
Magento\Framework\App\Action\HttpPostActionInterface
Definition:
HttpPostActionInterface.php:16