| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- /**
- *
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Backend\Controller\Adminhtml\Dashboard;
- use Magento\Backend\Controller\Adminhtml\Dashboard as DashboardAction;
- use Magento\Framework\App\Action\HttpGetActionInterface;
- use Magento\Framework\App\Action\HttpPostActionInterface;
- class Index extends DashboardAction implements HttpGetActionInterface, HttpPostActionInterface
- {
- /**
- * @var \Magento\Framework\View\Result\PageFactory
- */
- protected $resultPageFactory;
- /**
- * @param \Magento\Backend\App\Action\Context $context
- * @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
- */
- public function __construct(
- \Magento\Backend\App\Action\Context $context,
- \Magento\Framework\View\Result\PageFactory $resultPageFactory
- ) {
- parent::__construct($context);
- $this->resultPageFactory = $resultPageFactory;
- }
- /**
- * @return \Magento\Backend\Model\View\Result\Page
- */
- public function execute()
- {
- /** @var \Magento\Backend\Model\View\Result\Page $resultPage */
- $resultPage = $this->resultPageFactory->create();
- $resultPage->setActiveMenu('Magento_Backend::dashboard');
- $resultPage->addBreadcrumb(__('Dashboard'), __('Dashboard'));
- $resultPage->getConfig()->getTitle()->prepend(__('Dashboard'));
- return $resultPage;
- }
- }
|