Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
AbstractAction.php
Go to the documentation of this file.
1 <?php
7 
12 
18 abstract class AbstractAction extends Action implements UiActionInterface
19 {
23  protected $factory;
24 
29  public function __construct(Context $context, UiComponentFactory $factory)
30  {
31  parent::__construct($context);
32  $this->factory = $factory;
33  }
34 
40  protected function getName()
41  {
42  return $this->_request->getParam('name');
43  }
44 
50  protected function getComponent()
51  {
52  return $this->_request->getParam('component');
53  }
54 
60  public function executeAjaxRequest()
61  {
62  $this->execute();
63  }
64 
68  protected function _isAllowed()
69  {
70  return true;
71  }
72 }
__construct(Context $context, UiComponentFactory $factory)