Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Action.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Ui\Component;
7 
9 
14 {
15  const NAME = 'action';
16 
20  protected $actions;
21 
28  public function __construct(
30  array $components = [],
31  array $data = [],
32  $actions = null
33  ) {
34  parent::__construct($context, $components, $data);
35  $this->actions = $actions;
36  }
37 
41  public function prepare()
42  {
43  if (!empty($this->actions)) {
44  $this->setData('config', array_replace_recursive(['actions' => $this->actions], $this->getConfiguration()));
45  }
46 
47  parent::prepare();
48  }
49 
55  public function getComponentName()
56  {
57  return static::NAME;
58  }
59 }
__construct(ContextInterface $context, array $components=[], array $data=[], $actions=null)
Definition: Action.php:28