Neos.Neos/Classes/Fusion/MenuItemsImplementation.php
protected function isOnLastLevelOfMenu(NodeInterface $menuItemNode)
    {
        if ($this->currentLevel >= $this->getMaximumLevels()) {
            return true;
        }

        if (($this->getLastLevel() !== null)) {
            if ($this->getNodeLevelInSite($menuItemNode) >= $this->calculateNodeDepthFromRelativeLevel($this->getLastLevel(), $this->currentNode)) {
                return true;
            }
        }

        return false;
    }
protected function isOnLastLevelOfMenu(NodeInterface $menuItemNode)
    {
        if ($this->currentLevel >= $this->getMaximumLevels()) {
            return true;
        }

        if (($this->getLastLevel() !== null)) {
            if ($this->getNodeLevelInSite($menuItemNode) >= $this->calculateNodeDepthFromRelativeLevel($this->getLastLevel(), $this->currentNode)) {
                return true;
            }
        }

        return false;
    }
protected function isOnLastLevelOfMenu ( NodeInterface $ menuItemNode ) { if ( $ this -> currentLevel >= $ this -> getMaximumLevels ( ) ) { return true ; } if ( ( $ this -> getLastLevel ( ) !== null ) ) { if ( $ this -> getNodeLevelInSite ( $ menuItemNode ) >= $ this -> calculateNodeDepthFromRelativeLevel ( $ this -> getLastLevel ( ) , $ this -> currentNode ) ) { return true ; } } return false ; }
Checks if the given menuItem is on the last level for this menu, either defined by maximumLevels or lastLevels.

@param NodeInterface $menuItemNode
@return boolean
Checks if the given menuItem is on the last level for this menu either defined by maximumLevels or lastLevels .