{% if customOutgoingBundleAdmin is null %} {% set customOutgoingBundleAdmin = admin.getAdminByCode('app_bundle.admin.bundle_outgoing') %} {% endif %} {% set tabUrls = [] %} {% set tabRoutes = customOutgoingBundleAdmin.getTabRoutesNames() %} {% for routeName in tabRoutes %} {% if customOutgoingBundleAdmin.hasRoute(routeName) and customOutgoingBundleAdmin.hasRouteGranted(customOutgoingBundleAdmin.getCode(), routeName, bundle) %} {% set urlRow = customOutgoingBundleAdmin.generateObjectUrl(routeName, bundle) %} {% set tabUrls = tabUrls|merge({(routeName): urlRow}) %} {% endif %} {% endfor %}
  • {{ 'link.see_tab_outgoing_bundle_card'|trans({}, "CommonTrans") }}

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