Neos.Neos/Classes/Fusion/AbstractMenuItemsImplementation.php
protected function getCurrentNodeRootline()
    {
        if ($this->currentNodeRootline === null) {
            $nodeRootline = $this->currentNode->getContext()->getNodesOnPath($this->currentNode->getContext()->getCurrentSiteNode()->getPath(), $this->currentNode->getPath());
            $this->currentNodeRootline = [];

            foreach ($nodeRootline as $rootlineElement) {
                $this->currentNodeRootline[$this->getNodeLevelInSite($rootlineElement)] = $rootlineElement;
            }
        }

        return $this->currentNodeRootline;
    }
protected function getCurrentNodeRootline()
    {
        if ($this->currentNodeRootline === null) {
            $nodeRootline = $this->currentNode->getContext()->getNodesOnPath($this->currentNode->getContext()->getCurrentSiteNode()->getPath(), $this->currentNode->getPath());
            $this->currentNodeRootline = [];

            foreach ($nodeRootline as $rootlineElement) {
                $this->currentNodeRootline[$this->getNodeLevelInSite($rootlineElement)] = $rootlineElement;
            }
        }

        return $this->currentNodeRootline;
    }
protected function getCurrentNodeRootline ( ) { if ( $ this -> currentNodeRootline === null ) { $ nodeRootline = $ this -> currentNode -> getContext ( ) -> getNodesOnPath ( $ this -> currentNode -> getContext ( ) -> getCurrentSiteNode ( ) -> getPath ( ) , $ this -> currentNode -> getPath ( ) ) ; $ this -> currentNodeRootline = [ ] ; foreach ( $ nodeRootline as $ rootlineElement ) { $ this -> currentNodeRootline [ $ this -> getNodeLevelInSite ( $ rootlineElement ) ] = $ rootlineElement ; } } return $ this -> currentNodeRootline ; }
Get the rootline from the current node up to the site node.

@return array
Get the rootline from the current node up to the site node .