top-bar-local-task.html.twig

Same filename in other branches
  1. 10 core/modules/navigation/templates/top-bar-local-task.html.twig

Default theme implementation for a single navigation top bar local task.

Available variables:

  • link: Link render element.
1 theme call to top-bar-local-task.html.twig
NavigationRenderer::getLocalTasks in core/modules/navigation/src/NavigationRenderer.php
Local tasks list based on user access.

File

core/modules/navigation/templates/top-bar-local-task.html.twig

View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a single navigation top bar local task.
  5. *
  6. * Available variables:
  7. * - link: Link render element.
  8. */
  9. #}
  10. <li class="toolbar-dropdown__item">
  11. {{ link|add_class('toolbar-dropdown__link') }}
  12. </li>

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.