Neos.Neos/Classes/Fusion/AbstractMenuItemsImplementation.php
protected function getNodeLevelInSite(NodeInterface $node)
    {
        $siteNode = $this->currentNode->getContext()->getCurrentSiteNode();
        return $node->getDepth() - $siteNode->getDepth();
    }
protected function getNodeLevelInSite(NodeInterface $node)
    {
        $siteNode = $this->currentNode->getContext()->getCurrentSiteNode();
        return $node->getDepth() - $siteNode->getDepth();
    }
protected function getNodeLevelInSite ( NodeInterface $ node ) { $ siteNode = $ this -> currentNode -> getContext ( ) -> getCurrentSiteNode ( ) ; return $ node -> getDepth ( ) - $ siteNode -> getDepth ( ) ; }
Node Level relative to site root node.
0 = Site root node

@param NodeInterface $node
@return integer
Node Level relative to site root node . 0 = Site root node