menu-local-action.html.twig
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()
4 theme calls to menu-local-action.html.twig
- block_block_build_local_actions_block_alter in core/
modules/ block/ block.module  - Implements hook_block_build_BASE_BLOCK_ID_alter().
 - 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/
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
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.