function views_local_tasks_alter in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/views.module \views_local_tasks_alter()
- 9 core/modules/views/views.module \views_local_tasks_alter()
Implements hook_local_tasks_alter().
File
- core/
modules/ views/ views.module, line 798 - Primarily Drupal hooks and global API functions to manipulate views.
Code
function views_local_tasks_alter(&$local_tasks) {
$container = \Drupal::getContainer();
$local_task = ViewsLocalTask::create($container, 'views_view');
$local_task
->alterLocalTasks($local_tasks);
}