function ViewExecutableFactory::__construct
Same name in other branches
- 9 core/modules/views/src/ViewExecutableFactory.php \Drupal\views\ViewExecutableFactory::__construct()
- 10 core/modules/views/src/ViewExecutableFactory.php \Drupal\views\ViewExecutableFactory::__construct()
- 11.x core/modules/views/src/ViewExecutableFactory.php \Drupal\views\ViewExecutableFactory::__construct()
Constructs a new ViewExecutableFactory
Parameters
\Drupal\Core\Session\AccountInterface $user: The current user.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
\Drupal\views\ViewsData $views_data: The views data.
\Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider.
File
-
core/
modules/ views/ src/ ViewExecutableFactory.php, line 54
Class
- ViewExecutableFactory
- Defines the cache backend factory.
Namespace
Drupal\viewsCode
public function __construct(AccountInterface $user, RequestStack $request_stack, ViewsData $views_data, RouteProviderInterface $route_provider) {
$this->user = $user;
$this->requestStack = $request_stack;
$this->viewsData = $views_data;
$this->routeProvider = $route_provider;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.