{% extends 'Menu/base.html.twig' %} {% block root %} {% set actions = item.children|filter(child => child.displayed and child.extra('kind') != 'separator' and (child.extra('kind') != 'group' or (child.hasChildren and child.displayChildren))) %} {% if actions is not empty and item.displayChildren %} {% import 'knp_menu.html.twig' as knp_menu %}