template_preprocess_menu_local_action
function template_preprocess_menu_local_action
template_preprocess_menu_local_action(&$variables)
Prepares variables for single local action link templates.
Default template: menu-local-action.html.twig.
Parameters
array $variables: An associative array containing:
-
element: A render element containing:
- #link: A menu link array with 'title', 'url', and (optionally) 'localized_options' keys.
Related topics
- Menu system
- Define the navigation menus, local actions and tasks, and contextua