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
Noroute
Index.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Backend\Controller\Adminhtml\Noroute
;
8
12
class
Index
extends
\Magento\Backend\App\Action
13
{
17
protected
$resultPageFactory
;
18
23
public
function
__construct
(
24
\
Magento
\Backend\
App
\
Action
\
Context
$context,
25
\
Magento
\Framework\View\Result\PageFactory
$resultPageFactory
26
) {
27
parent::__construct($context);
28
$this->resultPageFactory =
$resultPageFactory
;
29
}
30
36
public
function
execute
()
37
{
39
$resultPage = $this->resultPageFactory->create();
40
$resultPage->setStatusHeader(404,
'1.1'
,
'Not Found'
);
41
$resultPage->setHeader(
'Status'
,
'404 File not found'
);
42
$resultPage->addHandle(
'adminhtml_noroute'
);
43
return
$resultPage;
44
}
45
51
protected
function
_validateSecretKey
()
52
{
53
return
true
;
54
}
55
}
Magento\Backend\Controller\Adminhtml\Noroute\Index
Definition:
Index.php:12
Magento\Framework\App
Magento\Framework\App\ActionInterface\execute
execute()
Magento\Backend\App\Action
Definition:
Action.php:17
Magento\Backend\Controller\Adminhtml\Noroute\Index\__construct
__construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\View\Result\PageFactory $resultPageFactory)
Definition:
Index.php:23
Magento\Backend\Controller\Adminhtml\Noroute\Index\_validateSecretKey
_validateSecretKey()
Definition:
Index.php:51
Magento\Backend\Controller\Adminhtml\Noroute\Index\$resultPageFactory
$resultPageFactory
Definition:
Index.php:17
Magento
Magento\Backend\Controller\Adminhtml\Noroute
Definition:
Index.php:7
Magento\Backend\App\Action\Context
Definition:
Context.php:25