Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Converter.php
Go to the documentation of this file.
1 <?php
7 
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 }
$source
Definition: source.php:23
if(!isset($_GET['name'])) $name
Definition: log.php:14