You are here

public function ViewExecutableFactory::__construct in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/ViewExecutableFactory.php \Drupal\views\ViewExecutableFactory::__construct()
  2. 10 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\views

Code

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;
}