Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x

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>

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal