function hook_menu_local_actions_alter in Drupal 9
Same name and namespace in other branches
- 8 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 346 - Hooks and documentation related to the menu system and links.
Code
function hook_menu_local_actions_alter(&$local_actions) {
}