Neos.Neos/Classes/Fusion/MenuItemsImplementation.php
protected function findMenuStartingPoint()
    {
        $fusionContext = $this->runtime->getCurrentContext();
        $startingPoint = $this->getStartingPoint();

        if (!isset($fusionContext['node']) && !$startingPoint) {
            throw new FusionException('You must either set a "startingPoint" for the menu or "node" must be set in the Fusion context.', 1369596980);
        }
        $startingPoint = $startingPoint ? : $fusionContext['node'];
        $entryParentNode = $this->findParentNodeInBreadcrumbPathByLevel($this->getEntryLevel(), $startingPoint);

        return $entryParentNode;
    }
protected function findMenuStartingPoint()
    {
        $fusionContext = $this->runtime->getCurrentContext();
        $startingPoint = $this->getStartingPoint();

        if (!isset($fusionContext['node']) && !$startingPoint) {
            throw new FusionException('You must either set a "startingPoint" for the menu or "node" must be set in the Fusion context.', 1369596980);
        }
        $startingPoint = $startingPoint ? : $fusionContext['node'];
        $entryParentNode = $this->findParentNodeInBreadcrumbPathByLevel($this->getEntryLevel(), $startingPoint);

        return $entryParentNode;
    }
protected function findMenuStartingPoint ( ) { $ fusionContext = $ this -> runtime -> getCurrentContext ( ) ; $ startingPoint = $ this -> getStartingPoint ( ) ; if ( ! isset ( $ fusionContext [ 'node' ] ) && ! $ startingPoint ) { throw new FusionException ( 'You must either set a "startingPoint" for the menu or "node" must be set in the Fusion context.' , 1369596980 ) ; } $ startingPoint = $ startingPoint ? : $ fusionContext [ 'node' ] ; $ entryParentNode = $ this -> findParentNodeInBreadcrumbPathByLevel ( $ this -> getEntryLevel ( ) , $ startingPoint ) ; return $ entryParentNode ; }
Find the starting point for this menu. depending on given startingPoint
If startingPoint is given, this is taken as starting point for this menu level,
as a fallback the Fusion context variable node is used.

If entryLevel is configured this will be taken into account as well.

@return NodeInterface
@throws Exception
Find the starting point for this menu . depending on given startingPoint If startingPoint is given this is taken as starting point for this menu level as a fallback the Fusion context variable node is used .