src/Sulu/Component/Webspace/Loader/XmlFileLoader10.php
protected function loadMeta($path, \DOMNode $context = null)
    {
        $result = [];

        /** @var \DOMElement $node */
        foreach ($this->xpath->query($path, $context) as $node) {
            $attribute = $node->tagName;
            $lang = $this->xpath->query('@lang', $node)->item(0)->nodeValue;

            if (!isset($result[$node->tagName])) {
                $result[$attribute] = [];
            }
            $result[$attribute][$lang] = $node->textContent;
        }

        return $result;
    }
protected function loadMeta($path, \DOMNode $context = null)
    {
        $result = [];

        /** @var \DOMElement $node */
        foreach ($this->xpath->query($path, $context) as $node) {
            $attribute = $node->tagName;
            $lang = $this->xpath->query('@lang', $node)->item(0)->nodeValue;

            if (!isset($result[$node->tagName])) {
                $result[$attribute] = [];
            }
            $result[$attribute][$lang] = $node->textContent;
        }

        return $result;
    }
protected function loadMeta ( $ path , \ DOMNode $ context = null ) { $ result = [ ] ; /** @var \DOMElement $node */ foreach ( $ this -> xpath -> query ( $ path , $ context ) as $ node ) { $ attribute = $ node -> tagName ; $ lang = $ this -> xpath -> query ( '@lang' , $ node ) -> item ( 0 ) -> nodeValue ; if ( ! isset ( $ result [ $ node -> tagName ] ) ) { $ result [ $ attribute ] = [ ] ; } $ result [ $ attribute ] [ $ lang ] = $ node -> textContent ; } return $ result ; }
Loads the meta information like a translatable title from the webspace.

@param $path
@param \DOMNode|null $context

@return array
Loads the meta information like a translatable title from the webspace .