Skip to content
Snippets Groups Projects
Commit 798850df authored by Dries Buytaert's avatar Dries Buytaert
Browse files

Issue #2137729 by aspilicious: Documentation for hook_local_tasks_alter() is incorrect.

parent 65f606ef
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -669,7 +669,7 @@ function hook_menu_local_actions_alter(&$local_actions) { ...@@ -669,7 +669,7 @@ function hook_menu_local_actions_alter(&$local_actions) {
* @see \Drupal\Core\Menu\LocalTaskInterface * @see \Drupal\Core\Menu\LocalTaskInterface
* @see \Drupal\Core\Menu\LocalTaskManager * @see \Drupal\Core\Menu\LocalTaskManager
*/ */
function hook_local_task_alter(&$local_tasks) { function hook_local_tasks_alter(&$local_tasks) {
// Remove a specified local task plugin. // Remove a specified local task plugin.
unset($local_tasks['example_plugin_id']); unset($local_tasks['example_plugin_id']);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment