Commit 7ee87e53 authored by Ben Mullins's avatar Ben Mullins Committed by Sascha Eggenberger
Browse files

Issue #3373688: Prevent duplicate ids in secondar: template change needed to...

Issue #3373688: Prevent duplicate ids in secondar: template change needed to faciliate gin toolbar fix
parent cc642a4e
Loading
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -20,6 +20,15 @@
 * @see template_preprocess_toolbar()
 */
#}

{# Prevent duplicate ids by using secondary tabs and trays when provided. #}
{% if _context['#secondary']['tabs'] %}
  {% set tabs = _context['#secondary']['tabs'] %}
{% endif %}
{% if _context['#secondary']['trays'] %}
  {% set trays = _context['#secondary']['trays'] %}
{% endif %}

<div{{ attributes.addClass('toolbar', 'toolbar-secondary').setAttribute('id', 'toolbar-administration-secondary') }}>
  <nav{{ toolbar_attributes.addClass('toolbar-bar', 'clearfix').setAttribute('id', 'toolbar-bar') }}>
    <h2 class="visually-hidden">{{ toolbar_heading }}</h2>