123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?php
- /**
- *
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Cms\Controller\Adminhtml\Page;
- use Magento\Framework\App\Action\HttpGetActionInterface;
- /**
- * Create CMS page action.
- */
- class NewAction extends \Magento\Backend\App\Action implements HttpGetActionInterface
- {
- /**
- * Authorization level of a basic admin session
- *
- * @see _isAllowed()
- */
- const ADMIN_RESOURCE = 'Magento_Cms::save';
- /**
- * @var \Magento\Backend\Model\View\Result\Forward
- */
- protected $resultForwardFactory;
- /**
- * @param \Magento\Backend\App\Action\Context $context
- * @param \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory
- */
- public function __construct(
- \Magento\Backend\App\Action\Context $context,
- \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory
- ) {
- $this->resultForwardFactory = $resultForwardFactory;
- parent::__construct($context);
- }
- /**
- * Forward to edit
- *
- * @return \Magento\Backend\Model\View\Result\Forward
- */
- public function execute()
- {
- /** @var \Magento\Backend\Model\View\Result\Forward $resultForward */
- $resultForward = $this->resultForwardFactory->create();
- return $resultForward->forward('edit');
- }
- }
|