vendor/sonata-project/admin-bundle/src/Resources/views/Breadcrumb/breadcrumb_title.html.twig line 1

Open in your IDE?
  1. {% for menu in items %}
  2.     {% if not loop.first %}
  3.         {% if loop.index != 2 %}
  4.             >
  5.         {% endif %}
  6.         {%- set translation_domain = menu.extra('translation_domain', 'messages') -%}
  7.         {# We use method accessor instead of ".label" since `menu` implements `ArrayAccess` and could have a property called "label". #}
  8.         {%- set label = menu.getLabel() -%}
  9.         {%- if translation_domain is not same as(false) -%}
  10.             {%- set label = label|trans(menu.extra('translation_params', {}), translation_domain) -%}
  11.         {%- endif -%}
  12.         {{ label }}
  13.     {% endif %}
  14. {% endfor %}