function node_local_tasks_alter
Implements hook_local_tasks_alter().
File
-
core/
modules/ node/ node.module, line 184
Code
function node_local_tasks_alter(&$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.