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
BaseStringUtils.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
15
class
BaseStringUtils
implements
InterpreterInterface
16
{
20
private
$booleanUtils;
21
27
public
function
__construct
(
BooleanUtils
$booleanUtils)
28
{
29
$this->booleanUtils = $booleanUtils;
30
}
31
37
public
function
evaluate
(array
$data
)
38
{
39
if
(isset(
$data
[
'value'
])) {
40
$result
=
$data
[
'value'
];
41
if
(!is_string(
$result
)) {
42
throw
new \InvalidArgumentException(
'String value is expected.'
);
43
}
44
}
else
{
45
$result
=
''
;
46
}
47
48
return
$result
;
49
}
50
}
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
Magento\Framework\Data\Argument\Interpreter\BaseStringUtils\__construct
__construct(BooleanUtils $booleanUtils)
Definition:
BaseStringUtils.php:27
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Framework\Data\Argument\Interpreter\BaseStringUtils
Definition:
BaseStringUtils.php:15
Magento\Framework\Stdlib\BooleanUtils
Definition:
BooleanUtils.php:14
Magento\Framework\Data\Argument\InterpreterInterface
Definition:
InterpreterInterface.php:14
Magento\Framework\Data\Argument\Interpreter\BaseStringUtils\evaluate
evaluate(array $data)
Definition:
BaseStringUtils.php:37
Magento\Framework\Data\Argument\Interpreter
Definition:
ArrayType.php:6