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

loadTags() private method

load tags from given tag and validates them.
private loadTags ( $path, &$tags, DOMXPath $xpath, DOMNode $context = null )
$xpath DOMXPath
$context DOMNode
    private function loadTags($path, &$tags, \DOMXPath $xpath, \DOMNode $context = null)
    {
        $result = [];
        /** @var \DOMElement $node */
        foreach ($xpath->query($path, $context) as $node) {
            $tag = $this->loadTag($xpath, $node);
            $this->validateTag($tag, $tags);
            $result[] = $tag;
        }
        return $result;
    }