public function ViewsLocalTask::__construct in Drupal 9
Same name and namespace in other branches
- 8 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\DerivativeCode
public function __construct(RouteProviderInterface $route_provider, StateInterface $state, EntityStorageInterface $view_storage) {
$this->routeProvider = $route_provider;
$this->state = $state;
$this->viewStorage = $view_storage;
}