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
Config
Argument
Parser
ConfigurableObjectType.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Ui\Config\Argument\Parser
;
7
8
use
Magento\Ui\Config\Argument\ParserInterface
;
9
13
class
ConfigurableObjectType
implements
ParserInterface
14
{
18
private
$argumentParser;
19
23
public
function
__construct
(
ParserInterface
$argumentParser)
24
{
25
$this->argumentParser = $argumentParser;
26
}
27
32
public
function
parse
(array
$data
, \DOMNode $node)
33
{
34
$arguments
= isset(
$data
[
'argument'
]) ?
$data
[
'argument'
] : [];
35
if
(!is_array(
$arguments
)) {
36
throw
new \InvalidArgumentException(
'Array arguments are expected.'
);
37
}
38
$result
= [];
39
foreach
(
$arguments
as $argumentKey => $argumentData) {
40
$parserResult = $this->argumentParser->parse($argumentData, $node);
41
if
($parserResult) {
42
$result
[$argumentKey] = $parserResult;
43
}
44
}
45
46
if
(
$result
) {
47
$data
[
'argument'
] =
$result
;
48
return
$data
;
49
}
else
{
50
return
$result
;
51
}
52
}
53
}
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
Magento\Ui\Config\Argument\Parser\ConfigurableObjectType\__construct
__construct(ParserInterface $argumentParser)
Definition:
ConfigurableObjectType.php:23
Magento\Ui\Config\Argument\ParserInterface
Definition:
ParserInterface.php:11
Magento\Ui\Config\Argument\Parser\ConfigurableObjectType
Definition:
ConfigurableObjectType.php:13
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Ui\Config\Argument\Parser\ConfigurableObjectType\parse
parse(array $data, \DOMNode $node)
Definition:
ConfigurableObjectType.php:32
Magento\Ui\Config\Argument\Parser
Definition:
ArrayType.php:6
$arguments
$arguments
Definition:
final_price.phtml:24