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
Dashboard
Index.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Backend\Controller\Adminhtml\Dashboard
;
8
9
use
Magento\Backend\Controller\Adminhtml\Dashboard
as
DashboardAction
;
10
use
Magento\Framework\App\Action\HttpGetActionInterface
;
11
use
Magento\Framework\App\Action\HttpPostActionInterface
;
12
13
class
Index
extends
DashboardAction
implements
HttpGetActionInterface
,
HttpPostActionInterface
14
{
18
protected
$resultPageFactory
;
19
24
public
function
__construct
(
25
\
Magento
\Backend\
App
\
Action
\
Context
$context,
26
\
Magento
\Framework\
View
\Result\PageFactory
$resultPageFactory
27
) {
28
parent::__construct($context);
29
$this->resultPageFactory =
$resultPageFactory
;
30
}
31
35
public
function
execute
()
36
{
38
$resultPage = $this->resultPageFactory->create();
39
$resultPage->setActiveMenu(
'Magento_Backend::dashboard'
);
40
$resultPage->addBreadcrumb(
__
(
'Dashboard'
),
__
(
'Dashboard'
));
41
$resultPage->getConfig()->getTitle()->prepend(
__
(
'Dashboard'
));
42
43
return
$resultPage;
44
}
45
}
Magento\Framework\App
Magento\Framework\App\Action\HttpGetActionInterface
Definition:
HttpGetActionInterface.php:16
Magento\Backend\Controller\Adminhtml\Dashboard
Definition:
ProductsViewedTest.php:7
__
__()
Definition:
__.php:13
Magento\Backend\Controller\Adminhtml\Dashboard\Index
Definition:
Index.php:13
Magento\Framework\App\ActionInterface\execute
execute()
Magento\Backend\App\Action
Definition:
Action.php:17
Magento
Magento\Backend\App\Action\Context
Definition:
Context.php:25
Magento\Framework\App\Action\HttpPostActionInterface
Definition:
HttpPostActionInterface.php:16
Magento\Backend\Controller\Adminhtml\Dashboard\Index\__construct
__construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\View\Result\PageFactory $resultPageFactory)
Definition:
Index.php:24
Magento\Framework\App\View
Definition:
View.php:8
Magento\Backend\Controller\Adminhtml\Dashboard\Index\$resultPageFactory
$resultPageFactory
Definition:
Index.php:18