mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 17:27:36 +00:00
- replaced release version with package version in @since and @depreacated tags - removed @since tag from private properties/methods and non @api classes
59 lines
1.4 KiB
PHP
59 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
namespace Magento\Theme\Controller\Adminhtml\Design\Config;
|
|
|
|
use Magento\Backend\App\Action;
|
|
use Magento\Backend\App\Action\Context;
|
|
use Magento\Framework\View\Result\PageFactory;
|
|
|
|
/**
|
|
* Design Config Settings index page action controller
|
|
*/
|
|
class Index extends Action
|
|
{
|
|
/**
|
|
* @var PageFactory
|
|
*/
|
|
protected $resultPageFactory;
|
|
|
|
/**
|
|
* @param Context $context
|
|
* @param PageFactory $resultPageFactory
|
|
*/
|
|
public function __construct(
|
|
Context $context,
|
|
PageFactory $resultPageFactory
|
|
) {
|
|
parent::__construct($context);
|
|
$this->resultPageFactory = $resultPageFactory;
|
|
}
|
|
|
|
/**
|
|
* Design config list action
|
|
*
|
|
* @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_Theme::design_config');
|
|
$resultPage->getConfig()->getTitle()->prepend(__('Design Configuration'));
|
|
|
|
return $resultPage;
|
|
}
|
|
|
|
/**
|
|
* Theme access rights checking
|
|
*
|
|
* @return bool
|
|
*/
|
|
protected function _isAllowed()
|
|
{
|
|
return $this->_authorization->isAllowed('Magento_Config::config_design');
|
|
}
|
|
}
|