{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #} {% macro render_html_attributes(item) %} {% for attribute_name, attribute_value in item.htmlAttributes %} {{ attribute_name }}="{{ attribute_value|e('html_attr') }}" {% endfor %} {% endmacro %} {% macro render_menu_item(item) %} {% if item.isMenuSection %} {% if item.icon is not empty %}{% endif %} {{ item.label|trans|raw }} {% if item.badge %} {{ item.badge.content }} {% endif %} {% else %} {% if item.icon is not empty %}{% endif %} {{ item.label|trans|raw }} {% if item.hasSubItems %}{% endif %} {% if item.badge %} {{ item.badge.content }} {% endif %} {% endif %} {% endmacro %}