Neos\Neos\Fusion\AbstractMenuImplementation::getCurrentNodeRootline PHP Method

getCurrentNodeRootline() protected method

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