Sulu\Component\Content\Metadata\Loader\XmlLegacyLoader::loadTypes PHP Method

loadTypes() private method

load types from given node.
private loadTypes ( $templateKey, $path, &$tags, DOMXPath $xpath, DOMNode $context = null )
$xpath DOMXPath
$context DOMNode
    private function loadTypes($templateKey, $path, &$tags, \DOMXPath $xpath, \DOMNode $context = null)
    {
        $result = [];
        /** @var \DOMElement $node */
        foreach ($xpath->query($path, $context) as $node) {
            $value = $this->loadType($templateKey, $xpath, $node, $tags);
            $result[$value['name']] = $value;
        }
        return $result;
    }