src/Menu/Menu.php
public function render($customTemplate = null)
    {
        $items = $this->generateItems($this->items);

        return $this->theme->render(
            $customTemplate,
            ['items' => $items, 'class' => $this->class],
            'menu'
        );
    }
public function render($customTemplate = null)
    {
        $items = $this->generateItems($this->items);

        return $this->theme->render(
            $customTemplate,
            ['items' => $items, 'class' => $this->class],
            'menu'
        );
    }
public function render ( $ customTemplate = null ) { $ items = $ this -> generateItems ( $ this -> items ) ; return $ this -> theme -> render ( $ customTemplate , [ 'items' => $ items , 'class' => $ this -> class ] , 'menu' ) ; }
Renders a new menu

@param string|null $customTemplate
@return string the menu's HTML
Renders a new menu