Smile\ElasticsuiteCore\Index\Indices\Config\Converter::parseDatasources PHP Method

parseDatasources() private method

Parse datasources from type node configuration.
private parseDatasources ( DOMXPath $xpath, DOMNode $typeRootNode ) : array
$xpath DOMXPath XPath access to the document parsed.
$typeRootNode DOMNode Type node to be parsed.
return array
    private function parseDatasources(\DOMXPath $xpath, \DOMNode $typeRootNode)
    {
        $datasources = [];
        foreach ($xpath->query(self::DATASOURCES_PATH, $typeRootNode) as $datasourceNode) {
            $datasources[$datasourceNode->getAttribute('name')] = $datasourceNode->nodeValue;
        }
        return $datasources;
    }