You are here

public function ViewsLocalTask::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/Derivative/ViewsLocalTask.php \Drupal\views\Plugin\Derivative\ViewsLocalTask::__construct()
  2. 9 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 $route_provider: The route provider.

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

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

File

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

Class

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

Namespace

Drupal\views\Plugin\Derivative

Code

public function __construct(RouteProviderInterface $route_provider, StateInterface $state, EntityStorageInterface $view_storage) {
  $this->routeProvider = $route_provider;
  $this->state = $state;
  $this->viewStorage = $view_storage;
}