src/Bridge/Twig/Extension/MenuExtension.php
public function getMenu(string $name, ViewInterface $view = null)
    {
        $menu = $this->menuFactory->getMenu($name);

        return $this->environment->render($menu->get('template'), [
            'menu' => $menu,
            'admin' => $view,
        ]);
    }
public function getMenu(string $name, ViewInterface $view = null)
    {
        $menu = $this->menuFactory->getMenu($name);

        return $this->environment->render($menu->get('template'), [
            'menu' => $menu,
            'admin' => $view,
        ]);
    }
public function getMenu ( string $ name , ViewInterface $ view = null ) { $ menu = $ this -> menuFactory -> getMenu ( $ name ) ; return $ this -> environment -> render ( $ menu -> get ( 'template' ) , [ 'menu' => $ menu , 'admin' => $ view , ] ) ; }
Render a menu according to given name.

@param string             $name
@param ViewInterface|null $view

@return string
Render a menu according to given name .