Neos\Neos\Fusion\MenuImplementation::getMaximumLevels PHP Method

getMaximumLevels() public method

Maximum number of levels which should be rendered in this menu.
public getMaximumLevels ( ) : integer
return integer
    public function getMaximumLevels()
    {
        if ($this->maximumLevels === null) {
            $this->maximumLevels = $this->tsValue('maximumLevels');
            if ($this->maximumLevels > self::MAXIMUM_LEVELS_LIMIT) {
                $this->maximumLevels = self::MAXIMUM_LEVELS_LIMIT;
            }
        }
        return $this->maximumLevels;
    }