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
7 
11 
15 class Index extends Action
16 {
20  protected $resultPageFactory;
21 
26  public function __construct(
27  Context $context,
29  ) {
30  parent::__construct($context);
31  $this->resultPageFactory = $resultPageFactory;
32  }
33 
39  public function execute()
40  {
42  $resultPage = $this->resultPageFactory->create();
43  $resultPage->setActiveMenu('Magento_Theme::design_config');
44  $resultPage->getConfig()->getTitle()->prepend(__('Design Configuration'));
45 
46  return $resultPage;
47  }
48 
54  protected function _isAllowed()
55  {
56  return $this->_authorization->isAllowed('Magento_Config::config_design');
57  }
58 }
__()
Definition: __.php:13
__construct(Context $context, PageFactory $resultPageFactory)
Definition: Index.php:26