menu-local-action.html.twig
Same filename in this branch
Theme override 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
- BlockHooks::blockBuildLocalActionsBlockAlter in core/
modules/ block/ src/ Hook/ BlockHooks.php - Implements hook_block_build_BASE_BLOCK_ID_alter().
- LocalActionManager::getActionsForRoute in core/
lib/ Drupal/ Core/ Menu/ LocalActionManager.php - Finds all local actions that appear on a named route.
File
-
core/
themes/ stable9/ templates/ navigation/ menu-local-action.html.twig
View source
- {#
- /**
- * @file
- * Theme override 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()
- */
- #}
- <li{{ attributes }}>{{ link }}</li>