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
Search
SearchEngine
Config
Converter.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\Search\SearchEngine\Config
;
7
8
use
Magento\Framework\Config\ConverterInterface
;
9
10
class
Converter
implements
ConverterInterface
11
{
15
public
function
convert
(
$source
)
16
{
17
$result
= [];
19
foreach
(
$source
->documentElement->getElementsByTagName(
'engine'
) as $engine) {
20
$name
= $engine->getAttribute(
'name'
);
21
$result
[
$name
] = [];
23
foreach
($engine->getElementsByTagName(
'feature'
) as $feature) {
24
if
($feature->getAttribute(
'support'
) ===
'1'
25
|| strtolower($feature->getAttribute(
'support'
)) ===
'true'
26
) {
27
$result
[
$name
][] = strtolower($feature->getAttribute(
'name'
));
28
}
29
}
30
}
31
return
$result
;
32
}
33
}
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
Magento\Framework\Search\SearchEngine\Config\Converter
Definition:
Converter.php:10
$source
$source
Definition:
source.php:23
Magento\Framework\Config\ConverterInterface\convert
convert($source)
Magento\Framework\Search\SearchEngine\Config
Definition:
Converter.php:6
Magento\Framework\Config\ConverterInterface
Definition:
ConverterInterface.php:14
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14