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
framework
Data
Argument
Interpreter
DataObject.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Framework\Data\Argument\Interpreter
;
8
9
use
Magento\Framework\Data\Argument\InterpreterInterface
;
10
use
Magento\Framework\Stdlib\BooleanUtils
;
11
12
class
DataObject
implements
InterpreterInterface
13
{
17
protected
$booleanUtils
;
18
22
public
function
__construct
(
BooleanUtils
$booleanUtils
)
23
{
24
$this->booleanUtils =
$booleanUtils
;
25
}
26
35
public
function
evaluate
(array
$data
)
36
{
37
$result
= [
'instance'
=>
$data
[
'value'
]];
38
if
(isset(
$data
[
'shared'
])) {
39
$result
[
'shared'
] = $this->booleanUtils->toBoolean(
$data
[
'shared'
]);
40
}
41
return
$result
;
42
}
43
}
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
Magento\Framework\Data\Argument\Interpreter\DataObject\__construct
__construct(BooleanUtils $booleanUtils)
Definition:
DataObject.php:22
Magento\Framework\Data\Argument\Interpreter\DataObject\$booleanUtils
$booleanUtils
Definition:
DataObject.php:17
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Framework\Data\Argument\Interpreter\DataObject
Definition:
DataObject.php:12
Magento\Framework\Data\Argument\Interpreter\DataObject\evaluate
evaluate(array $data)
Definition:
DataObject.php:35
Magento\Framework\Stdlib\BooleanUtils
Definition:
BooleanUtils.php:14
Magento\Framework\Data\Argument\InterpreterInterface
Definition:
InterpreterInterface.php:14
Magento\Framework\Data\Argument\Interpreter
Definition:
ArrayType.php:6