![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/magento/module-ui/Component/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Ui\Component; use Magento\Framework\View\Element\UiComponent\ContextInterface; /** * Class Action */ class Action extends AbstractComponent { const NAME = 'action'; /** * @var array|\JsonSerializable */ protected $actions; /** * @param ContextInterface $context * @param array $components * @param array $data * @param array|\JsonSerializable $actions */ public function __construct( ContextInterface $context, array $components = [], array $data = [], $actions = null ) { parent::__construct($context, $components, $data); $this->actions = $actions; } /** * @inheritDoc */ public function prepare() { if (!empty($this->actions)) { $this->setData('config', array_replace_recursive(['actions' => $this->actions], $this->getConfiguration())); } parent::prepare(); } /** * Get component name * * @return string */ public function getComponentName() { return static::NAME; } }