function ViewExecutableFactory::__construct
Same name in other branches
- 9 core/modules/views/src/ViewExecutableFactory.php \Drupal\views\ViewExecutableFactory::__construct()
- 8.9.x 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.
\Drupal\views\Plugin\ViewsPluginManager|null $displayPluginManager: The display plugin manager.
File
-
core/
modules/ views/ src/ ViewExecutableFactory.php, line 57
Class
- ViewExecutableFactory
- Defines the cache backend factory.
Namespace
Drupal\viewsCode
public function __construct(AccountInterface $user, RequestStack $request_stack, ViewsData $views_data, RouteProviderInterface $route_provider, ?ViewsPluginManager $displayPluginManager = NULL) {
$this->user = $user;
$this->requestStack = $request_stack;
$this->viewsData = $views_data;
$this->routeProvider = $route_provider;
if ($this->displayPluginManager === NULL) {
@trigger_error('Calling ' . __METHOD__ . ' without the $displayPluginManager argument is deprecated in drupal:10.3.0 and it will be required in drupal:12.0.0. See https://www.drupal.org/node/3410349', E_USER_DEPRECATED);
$this->displayPluginManager = \Drupal::service('plugin.manager.views.display');
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.