protected getNodeLevelInSite ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : integer | ||
$node | Neos\ContentRepository\Domain\Model\NodeInterface | |
return | integer |
protected function getNodeLevelInSite(NodeInterface $node)
{
$siteNode = $this->currentNode->getContext()->getCurrentSiteNode();
return $node->getDepth() - $siteNode->getDepth();
}