Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
MassAction.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Ui\Component;
7 
13 {
14  const NAME = 'massaction';
15 
19  public function prepare()
20  {
21  $config = $this->getConfiguration();
22 
23  foreach ($this->getChildComponents() as $actionComponent) {
24  $config['actions'][] = $actionComponent->getConfiguration();
25  }
26 
27  $origConfig = $this->getConfiguration();
28  if ($origConfig !== $config) {
29  $config = array_replace_recursive($config, $origConfig);
30  }
31 
32  $this->setData('config', $config);
33  $this->components = [];
34 
35  parent::prepare();
36  }
37 
43  public function getComponentName()
44  {
45  return static::NAME;
46  }
47 }
$config
Definition: fraud_order.php:17