function views_local_tasks_alter
views_local_tasks_alter(&$local_tasks)
Implements hook_local_tasks_alter().
File
- core/modules/views/views.module, line 811
- 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); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!views!views.module/function/views_local_tasks_alter/8.1.x