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/ olivero/ templates/ 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()
- *
- * @ingroup themeable
- */
- #}
- {{ attach_library('olivero/local-actions') }}
-
- <li{{ attributes }} class="action-links-item">{{ link }}</li>
Related topics
- Theme system overview
- Functions and templates for the user interface that themes can override.