Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
NewAction.php
Go to the documentation of this file.
1 <?php
7 
9 {
15  const ADMIN_RESOURCE = 'Magento_Search::synonyms';
16 
20  private $forwardFactory;
21 
28  public function __construct(
29  \Magento\Backend\App\Action\Context $context,
30  \Magento\Backend\Model\View\Result\ForwardFactory $forwardFactory
31  ) {
32  $this->forwardFactory = $forwardFactory;
33  parent::__construct($context);
34  }
35 
41  public function execute()
42  {
43  $forward = $this->forwardFactory->create();
44  $forward->forward('edit');
45  return $forward;
46  }
47 }
__construct(\Magento\Backend\App\Action\Context $context, \Magento\Backend\Model\View\Result\ForwardFactory $forwardFactory)
Definition: NewAction.php:28