W3cubDocs

/Drupal 8

function hook_menu_local_actions_alter

hook_menu_local_actions_alter(&$local_actions)

Alter local actions plugins.

Parameters

array $local_actions: The array of local action plugin definitions, keyed by plugin ID.

See also

\Drupal\Core\Menu\LocalActionInterface

\Drupal\Core\Menu\LocalActionManager

Related topics

Hooks
Define functions that alter the behavior of Drupal core.
Menu system
Define the navigation menus, local actions and tasks, and contextual links.

File

core/lib/Drupal/Core/Menu/menu.api.php, line 335
Hooks and documentation related to the menu system and links.

Code

function hook_menu_local_actions_alter(&$local_actions) {
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Menu!menu.api.php/function/hook_menu_local_actions_alter/8.1.x