You are here

public function ViewRevisionsRequest::__construct in Config Entity Revisions 8

Same name and namespace in other branches
  1. 1.x modules/views_revisions/src/ViewsRevisionsRequest.php \Drupal\views_revisions\ViewRevisionsRequest::__construct()

Constructs a ViewRevisionsRequest object.

Parameters

\Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

\Drupal\Core\Routing\AdminContext $admin_context: The route admin context service.

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Entity\EntityTypeRepositoryInterface $entity_type_repository: The entity type repository.

\Drupal\view\ViewEntityReferenceManagerInterface $view_entity_reference_manager: The view entity reference manager.

\Drupal\view\Plugin\ViewSourceEntityManagerInterface $view_source_entity_manager: The view source entity plugin manager.

File

modules/views_revisions/src/ViewsRevisionsRequest.php, line 112

Class

ViewRevisionsRequest
Handles view requests.

Namespace

Drupal\views_revisions

Code

public function __construct(RouteProviderInterface $route_provider, RequestStack $request_stack, AdminContext $admin_context, RouteMatchInterface $route_match, EntityTypeManagerInterface $entity_type_manager, EntityTypeRepositoryInterface $entity_type_repository, ViewEntityReferenceManagerInterface $view_entity_reference_manager, ViewSourceEntityManagerInterface $view_source_entity_manager) {
  $this->routeProvider = $route_provider;
  $this->request = $request_stack
    ->getCurrentRequest();
  $this->adminContext = $admin_context;
  $this->routeMatch = $route_match;
  $this->entityTypeManager = $entity_type_manager;
  $this->entityTypeRepository = $entity_type_repository;
  $this->viewEntityReferenceManager = $view_entity_reference_manager;
  $this->viewSourceEntityManager = $view_source_entity_manager;
}