menu() публичный Метод

См. также: Bolt\Twig\Handler\HtmlHandler::menu()
public menu ( Twig_Environment $env, $identifier = '', $template = '_sub_menu.twig', $params = [] )
$env Twig_Environment
Пример #1
0
 public function testMenu()
 {
     $app = $this->getApp();
     $handlers = $this->getTwigHandlers($app);
     $handlers['html'] = $this->getMockHandler('HtmlHandler', 'menu');
     $twig = new TwigExtension($app, $handlers, true);
     $twig->menu($app['twig'], null, null, null, null);
 }