menu-local-tasks.html.twig 752 B

1234567891011121314151617181920212223242526272829
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display primary and secondary local tasks.
  5. *
  6. * Available variables:
  7. * - primary: HTML list items representing primary tasks.
  8. * - secondary: HTML list items representing primary tasks.
  9. *
  10. * Each item in these variables (primary and secondary) can be individually
  11. * themed in menu-local-task.html.twig.
  12. *
  13. * @see template_preprocess_menu_local_tasks()
  14. *
  15. * @ingroup themeable
  16. */
  17. #}
  18. {{ attach_library('basic/tabs') }}
  19. {% if primary %}
  20. <h2 class="visually-hidden">{{ 'Primary tabs'|t }}</h2>
  21. <ul class="tabs primary">{{ primary }}</ul>
  22. {% endif %}
  23. {% if secondary %}
  24. <h2 class="visually-hidden">{{ 'Secondary tabs'|t }}</h2>
  25. <ul class="tabs secondary">{{ secondary }}</ul>
  26. {% endif %}