menu-local-action.html.twig in Zircon Profile 8
Same filename in this branch
Same filename and directory in other branches
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
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.twigView 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>