Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. NodeHooks1.php

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\Hook

Code

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']);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal