Drupal investigation

menu-local-tasks.html.twig 618B

123456789101112131415161718192021222324
  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>{{ primary }}</ul>
  18. {% endif %}
  19. {% if secondary %}
  20. <h2 class="visually-hidden">{{ 'Secondary tabs'|t }}</h2>
  21. <ul>{{ secondary }}</ul>
  22. {% endif %}