function hook_menu_local_actions_alter

Same name in other branches
  1. 9 core/lib/Drupal/Core/Menu/menu.api.php \hook_menu_local_actions_alter()
  2. 8.9.x core/lib/Drupal/Core/Menu/menu.api.php \hook_menu_local_actions_alter()
  3. 11.x core/lib/Drupal/Core/Menu/menu.api.php \hook_menu_local_actions_alter()

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 345

Code

function hook_menu_local_actions_alter(&$local_actions) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.