{% if service is not empty and service.id is not empty and service.getDeletedAt() is null %} {% set tabUrls = [] %} {% if objectAdmins is not null %} {% for objectClass, admin in objectAdmins %} {% if service|instanceof(objectClass) %} {% set tabRoutes = admin.getTabRoutesNames() %} {% for routeName in tabRoutes %} {% if admin.hasRoute(routeName) and admin.hasRouteGranted(admin.getCode(), routeName, service) %} {% set urlRow = admin.generateObjectUrl(routeName, service) %} {% set tabUrls = tabUrls|merge({(routeName): urlRow}) %} {% endif %} {% endfor %} {% endif %} {% endfor %} {% endif %}
  • {{ 'link.see_tab_service_card'|trans({}, "CommonTrans") }}

  • {% include 'AppBundle:Admin:Block\\context_tabs.html.twig' with { 'tabUrls': tabUrls, 'translationDomain': 'ServiceTrans' } %} {% endif %}