Index.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Backend\Controller\Adminhtml\System\Account;
  8. use Magento\Framework\App\Action\HttpGetActionInterface as HttpGetActionInterface;
  9. class Index extends \Magento\Backend\Controller\Adminhtml\System\Account implements HttpGetActionInterface
  10. {
  11. /**
  12. * @var \Magento\Framework\View\Result\PageFactory
  13. */
  14. protected $resultPageFactory;
  15. /**
  16. * @param \Magento\Backend\App\Action\Context $context
  17. * @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
  18. */
  19. public function __construct(
  20. \Magento\Backend\App\Action\Context $context,
  21. \Magento\Framework\View\Result\PageFactory $resultPageFactory
  22. ) {
  23. parent::__construct($context);
  24. $this->resultPageFactory = $resultPageFactory;
  25. }
  26. /**
  27. * @return \Magento\Backend\Model\View\Result\Page
  28. */
  29. public function execute()
  30. {
  31. $resultPage = $this->resultPageFactory->create();
  32. $resultPage->getConfig()->getTitle()->prepend(__('My Account'));
  33. return $resultPage;
  34. }
  35. }