menu-local-action.html.twig
Same filename in this branch
Same filename in other branches
- 9 core/themes/olivero/templates/menu-local-action.html.twig
- 9 core/themes/stable9/templates/navigation/menu-local-action.html.twig
- 9 core/themes/stable/templates/navigation/menu-local-action.html.twig
- 9 core/themes/starterkit_theme/templates/navigation/menu-local-action.html.twig
- 9 core/themes/classy/templates/navigation/menu-local-action.html.twig
- 9 core/modules/system/templates/menu-local-action.html.twig
- 10 core/themes/olivero/templates/menu-local-action.html.twig
- 10 core/themes/stable9/templates/navigation/menu-local-action.html.twig
- 10 core/themes/starterkit_theme/templates/navigation/menu-local-action.html.twig
- 10 core/modules/system/templates/menu-local-action.html.twig
- 11.x core/themes/olivero/templates/menu-local-action.html.twig
- 11.x core/themes/stable9/templates/navigation/menu-local-action.html.twig
- 11.x core/themes/starterkit_theme/templates/navigation/menu-local-action.html.twig
- 11.x 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()
3 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.
- LocalActionManager::getActionsForRoute in core/
lib/ Drupal/ Core/ Menu/ LocalActionManager.php - Finds all local actions that appear on a named route.
- LocalActionManagerTest::getActionsForRouteProvider in core/
tests/ Drupal/ Tests/ Core/ Menu/ LocalActionManagerTest.php
File
-
core/
modules/ system/ templates/ menu-local-action.html.twig
View source
- {#
- /**
- * @file
- * Default theme implementation for a single local action link.
- *
- * Available variables:
- * - attributes: HTML attributes for the wrapper element.
- * - link: A rendered link element.
- *
- * @see template_preprocess_menu_local_action()
- *
- * @ingroup themeable
- */
- #}
- <li{{ attributes }}>{{ link }}</li>
Related topics
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.