Same filename in this branch
  1. 10 core/modules/system/templates/menu-local-action.html.twig
  2. 10 core/themes/olivero/templates/menu-local-action.html.twig
  3. 10 core/themes/stable9/templates/navigation/menu-local-action.html.twig
  4. 10 core/themes/starterkit_theme/templates/navigation/menu-local-action.html.twig
Same filename and directory in other branches
  1. 8.9.x core/modules/system/templates/menu-local-action.html.twig
  2. 9 core/modules/system/templates/menu-local-action.html.twig

Default theme implementation for a single local action link.

Available variables:

  • attributes: HTML attributes for the wrapper element.
  • link: A rendered link element.

See also

template_preprocess_menu_local_action()

2 theme calls to menu-local-action.html.twig
ForumController::buildActionLinks in core/modules/forum/src/Controller/ForumController.php
Generates an action link to display at the top of the forum listing.
LocalActionManagerTest::getActionsForRouteProvider in core/tests/Drupal/Tests/Core/Menu/LocalActionManagerTest.php

File

core/modules/system/templates/menu-local-action.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation for a single local action link.
  5. *
  6. * Available variables:
  7. * - attributes: HTML attributes for the wrapper element.
  8. * - link: A rendered link element.
  9. *
  10. * @see template_preprocess_menu_local_action()
  11. *
  12. * @ingroup themeable
  13. */
  14. #}
  15. <li{{ attributes }}>{{ link }}</li>

Related topics