Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-ui
Component
Action.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Ui\Component
;
7
8
use
Magento\Framework\View\Element\UiComponent\ContextInterface
;
9
13
class
Action
extends
AbstractComponent
14
{
15
const
NAME
=
'action'
;
16
20
protected
$actions
;
21
28
public
function
__construct
(
29
ContextInterface
$context
,
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
}
Magento\Ui\Component\AbstractComponent
Definition:
AbstractComponent.php:24
Magento\Ui\Component\Action
Definition:
Action.php:13
Magento\Ui\Component\Action\getComponentName
getComponentName()
Definition:
Action.php:55
Magento\Framework\View\Element\UiComponent\ContextInterface
Definition:
ContextInterface.php:17
Magento\Ui\Component\Action\$actions
$actions
Definition:
Action.php:20
Magento\Ui\Component\Action\NAME
const NAME
Definition:
Action.php:15
Magento\Ui\Component\AbstractComponent\setData
setData($key, $value=null)
Definition:
AbstractComponent.php:252
Magento\Ui\Component\Action\prepare
prepare()
Definition:
Action.php:41
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Ui\Component\AbstractComponent\$context
$context
Definition:
AbstractComponent.php:31
Magento\Ui\Component\Action\__construct
__construct(ContextInterface $context, array $components=[], array $data=[], $actions=null)
Definition:
Action.php:28
Magento\Ui\Component\AbstractComponent\getConfiguration
getConfiguration()
Definition:
AbstractComponent.php:224
Magento\Ui\Component\AbstractComponent\$components
$components
Definition:
AbstractComponent.php:36
Magento\Ui\Component
Definition:
ConfigurationTest.php:6