{% extends 'knp_menu.html.twig' %} {% block list %} {% import 'knp_menu.html.twig' as macros %} {% if item.hasChildren and options.depth is not same as(0) and item.displayChildren %}