{# Renders a KnpMenu as the back link and a row of tabs above the content, for the sections of one record (AdminMenuBuilder::createTeamerMenu()). Dividers are skipped; the item marked `back` by AbstractMenuBuilder::addBackItem() becomes the link above the tabs. #} {% block root %} {% set back = item.children|filter(child => child.extras.back is defined)|first %} {% if back %} {{ include('_partials/_back_link.html.twig', { 'url': back.uri, 'label': back.label }) }} {% endif %} {% endblock %}