8.5.x menu.api.php hook_menu_local_actions_alter(&$local_actions)
8.0.x menu.api.php hook_menu_local_actions_alter(&$local_actions)
8.1.x menu.api.php hook_menu_local_actions_alter(&$local_actions)
8.2.x menu.api.php hook_menu_local_actions_alter(&$local_actions)
8.3.x menu.api.php hook_menu_local_actions_alter(&$local_actions)
8.4.x menu.api.php hook_menu_local_actions_alter(&$local_actions)
8.6.x menu.api.php 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

2 invocations of hook_menu_local_actions_alter()
LocalActionManager::__construct in core/lib/Drupal/Core/Menu/LocalActionManager.php
Constructs a LocalActionManager object.
TestLocalActionManager::__construct in core/tests/Drupal/Tests/Core/Menu/LocalActionManagerTest.php
Constructs a LocalActionManager object.

File

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

Code

function hook_menu_local_actions_alter(&$local_actions) {
}