PHP Class Smile\ElasticsuiteCore\Index\Indices\Config\Converter

Author: Aurelien FOUCRET ([email protected])
Inheritance: implements Magento\Framework\Config\ConverterInterface
Show file Open project: smile-sa/elasticsuite

Public Methods

Method Description
convert ( mixed $source ) : array Convert dom node tree to array

Private Methods

Method Description
createMappingField ( DOMNode $fieldNode ) : array Parse field configuration params.
parseDatasources ( DOMXPath $xpath, DOMNode $typeRootNode ) : array Parse datasources from type node configuration.
parseIndexConfig ( DOMXPath $xpath, DOMNode $indexRootNode ) : array Parse index node configuration.
parseMappingFields ( DOMXPath $xpath, DOMNode $typeRootNode ) : array Parse type fields from type node configuration.
parseTypeConfig ( DOMXPath $xpath, DOMNode $typeRootNode ) : array Parse type node configuration.
underscore ( string $name ) : string Converts tag name from camelCase to snake_case

Method Details

convert() public method

Convert dom node tree to array
public convert ( mixed $source ) : array
$source mixed Configuration XML source.
return array