{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #} {% macro render_menu_item(item, is_sub_item = false) %} {% if item.isMenuSection %} {% if item.icon is not empty %} {% endif %} {{ item.label }} {% else %} {% if item.icon is not empty %} {% endif %} {{ item.label|sov_trans_admin_menu(item.translationParameters)|raw }} {% if item.hasSubItems %}{% endif %} {% endif %} {% endmacro %} {% block main_menu_before %}{% endblock %} {% block main_menu %} {% for menuItem in ea.mainMenu.items %} {% block menu_item %} {{ _self.render_menu_item(menuItem) }} {% if menuItem.hasSubItems %} {% for menuSubItem in menuItem.subItems %} {% block menu_subitem %} {{ _self.render_menu_item(menuSubItem, true) }} {% endblock menu_subitem %} {% endfor %} {% endif %} {% endblock menu_item %} {% endfor %} {% endblock main_menu %} {% block main_menu_after %}{% endblock %}
{{ item.label|sov_trans_admin_menu(item.translationParameters)|raw }}