Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Index.php
Go to the documentation of this file.
1 <?php
8 
12 
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 }
__()
Definition: __.php:13
__construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\View\Result\PageFactory $resultPageFactory)
Definition: Index.php:24