function NodeHooks1::localTasksAlter
Implements hook_local_tasks_alter().
File
-
core/
modules/ node/ src/ Hook/ NodeHooks1.php, line 161
Class
- NodeHooks1
- Hook implementations for node.
Namespace
Drupal\node\HookCode
public function localTasksAlter(&$local_tasks) : void {
// Removes 'Revisions' local task added by deriver. Local task
// 'entity.node.version_history' will be replaced by
// 'entity.version_history:node.version_history' after
// https://www.drupal.org/project/drupal/issues/3153559.
unset($local_tasks['entity.version_history:node.version_history']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.