function views_local_tasks_alter

Same name in other branches
  1. 8.9.x core/modules/views/views.module \views_local_tasks_alter()
  2. 10 core/modules/views/views.module \views_local_tasks_alter()
  3. 11.x core/modules/views/views.module \views_local_tasks_alter()

Implements hook_local_tasks_alter().

File

core/modules/views/views.module, line 808

Code

function views_local_tasks_alter(&$local_tasks) {
    $container = \Drupal::getContainer();
    $local_task = ViewsLocalTask::create($container, 'views_view');
    $local_task->alterLocalTasks($local_tasks);
}

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