src/Sulu/Component/Webspace/Loader/XmlFileLoader10.php
protected function generateNavigation()
    {
        $contexts = [];

        foreach ($this->xpath->query('/x:webspace/x:navigation/x:contexts/x:context') as $contextNode) {
            /* @var \DOMNode $contextNode */
            $contexts[] = new NavigationContext(
                $contextNode->attributes->getNamedItem('key')->nodeValue,
                $this->loadMeta('x:meta/x:*', $contextNode)
            );
        }

        return new Navigation($contexts);
    }
protected function generateNavigation()
    {
        $contexts = [];

        foreach ($this->xpath->query('/x:webspace/x:navigation/x:contexts/x:context') as $contextNode) {
            /* @var \DOMNode $contextNode */
            $contexts[] = new NavigationContext(
                $contextNode->attributes->getNamedItem('key')->nodeValue,
                $this->loadMeta('x:meta/x:*', $contextNode)
            );
        }

        return new Navigation($contexts);
    }
protected function generateNavigation ( ) { $ contexts = [ ] ; foreach ( $ this -> xpath -> query ( '/x:webspace/x:navigation/x:contexts/x:context' ) as $ contextNode ) { /* @var \DOMNode $contextNode */ $ contexts [ ] = new NavigationContext ( $ contextNode -> attributes -> getNamedItem ( 'key' ) -> nodeValue , $ this -> loadMeta ( 'x:meta/x:*' , $ contextNode ) ) ; } return new Navigation ( $ contexts ) ; }
Generates the availabel navigation contexts for the webspace.

@return Navigation
Generates the availabel navigation contexts for the webspace .