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 
9 use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
10 
11 class Index extends \Magento\Backend\Controller\Adminhtml\System\Account implements HttpGetActionInterface
12 {
16  protected $resultPageFactory;
17 
22  public function __construct(
23  \Magento\Backend\App\Action\Context $context,
24  \Magento\Framework\View\Result\PageFactory $resultPageFactory
25  ) {
26  parent::__construct($context);
27  $this->resultPageFactory = $resultPageFactory;
28  }
29 
33  public function execute()
34  {
35  $resultPage = $this->resultPageFactory->create();
36  $resultPage->getConfig()->getTitle()->prepend(__('My Account'));
37 
38  return $resultPage;
39  }
40 }
__construct(\Magento\Backend\App\Action\Context $context, \Magento\Framework\View\Result\PageFactory $resultPageFactory)
Definition: Index.php:22
__()
Definition: __.php:13