Neos.Neos/Classes/Fusion/DimensionsMenuItemsImplementation.php
protected function hasHiddenNodeParent(NodeInterface $node): bool
    {
        $rootNode = $node->getContext()->getRootNode();
        $nodesOnPath = $node->getContext()->getNodesOnPath($rootNode, $node);

        return count($nodesOnPath) < $node->getDepth();
    }
protected function hasHiddenNodeParent(NodeInterface $node): bool
    {
        $rootNode = $node->getContext()->getRootNode();
        $nodesOnPath = $node->getContext()->getNodesOnPath($rootNode, $node);

        return count($nodesOnPath) < $node->getDepth();
    }
protected function hasHiddenNodeParent ( NodeInterface $ node ) : bool { $ rootNode = $ node -> getContext ( ) -> getRootNode ( ) ; $ nodesOnPath = $ node -> getContext ( ) -> getNodesOnPath ( $ rootNode , $ node ) ; return count ( $ nodesOnPath ) < $ node -> getDepth ( ) ; }
Returns TRUE if the node has a inaccessible parent.

@param NodeInterface $node
@return bool
Returns TRUE if the node has a inaccessible parent .