function ViewsLocalTask::__construct
Same name in other branches
- 9 core/modules/views/src/Plugin/Derivative/ViewsLocalTask.php \Drupal\views\Plugin\Derivative\ViewsLocalTask::__construct()
- 8.9.x core/modules/views/src/Plugin/Derivative/ViewsLocalTask.php \Drupal\views\Plugin\Derivative\ViewsLocalTask::__construct()
- 10 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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.