You are here

tab-toolbar.html.twig in Tabs in toolbar 8

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.

File

templates/tab-toolbar.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. * @ingroup themeable
  13. */
  14. #}
  15. {% if primary %}
  16. <h2 class="visually-hidden">{{ 'Primary tabs'|t }}</h2>
  17. <ul class="toolbar-menu">{{ primary }}</ul>
  18. {% endif %}
  19. {% if secondary %}
  20. <h2 class="visually-hidden">{{ 'Secondary tabs'|t }}</h2>
  21. <ul class="toolbar-menu">{{ secondary }}</ul>
  22. {% endif %}