function ViewsHooks::localTasksAlter
Implements hook_local_tasks_alter().
File
-
core/
modules/ views/ src/ Hook/ ViewsHooks.php, line 361
Class
- ViewsHooks
- Hook implementations for views.
Namespace
Drupal\views\HookCode
public function localTasksAlter(&$local_tasks) : void {
$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.