function ViewsLocalTask::__construct

Same name and namespace in other branches
  1. 11.x core/modules/views/src/Plugin/Derivative/ViewsLocalTask.php \Drupal\views\Plugin\Derivative\ViewsLocalTask::__construct()
  2. 10 core/modules/views/src/Plugin/Derivative/ViewsLocalTask.php \Drupal\views\Plugin\Derivative\ViewsLocalTask::__construct()
  3. 9 core/modules/views/src/Plugin/Derivative/ViewsLocalTask.php \Drupal\views\Plugin\Derivative\ViewsLocalTask::__construct()
  4. 8.9.x core/modules/views/src/Plugin/Derivative/ViewsLocalTask.php \Drupal\views\Plugin\Derivative\ViewsLocalTask::__construct()

Constructs a \Drupal\views\Plugin\Derivative\ViewsLocalTask instance.

Parameters

\Drupal\Core\Routing\RouteProviderInterface $routeProvider: The route provider.

\Drupal\Core\State\StateInterface $state: The state key value store.

\Drupal\Core\Entity\EntityStorageInterface $viewStorage: The view storage.

File

core/modules/views/src/Plugin/Derivative/ViewsLocalTask.php, line 28

Class

ViewsLocalTask
Provides local task definitions for all views configured as local tasks.

Namespace

Drupal\views\Plugin\Derivative

Code

public function __construct(protected RouteProviderInterface $routeProvider, protected StateInterface $state, protected EntityStorageInterface $viewStorage) {
}

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