class NodeMenuHooks

Menu hook implementations for node.

Hierarchy

Expanded class hierarchy of NodeMenuHooks

File

core/modules/node/src/Hook/NodeMenuHooks.php, line 12

Namespace

Drupal\node\Hook
View source
class NodeMenuHooks {
  
  /**
   * Implements hook_local_tasks_alter().
   */
  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']);
  }

}

Members

Title Sort descending Modifiers Object type Summary
NodeMenuHooks::localTasksAlter public function Implements hook_local_tasks_alter().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.