You are here

menu-local-tasks.html.twig in Zircon Profile 8.0

Default theme implementation to display primary and secondary local tasks.

Available variables:

  • primary: HTML list items representing primary tasks.
  • secondary: HTML list items representing primary tasks.

Each item in these variables (primary and secondary) can be individually themed in menu-local-task.html.twig.

See also

template_preprocess_menu_local_tasks()

File

core/modules/system/templates/menu-local-tasks.html.twig
View source
  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. {% if primary %}
  19. <h2 class="visually-hidden">{{ 'Primary tabs'|t }}</h2>
  20. <ul>{{ primary }}</ul>
  21. {% endif %}
  22. {% if secondary %}
  23. <h2 class="visually-hidden">{{ 'Secondary tabs'|t }}</h2>
  24. <ul>{{ secondary }}</ul>
  25. {% endif %}

Related topics