You are here

public function WebformRevisionsRequest::__construct in Config Entity Revisions 8.2

Same name and namespace in other branches
  1. 8 modules/webform_revisions/src/WebformRevisionsRequest.php \Drupal\webform_revisions\WebformRevisionsRequest::__construct()
  2. 1.x modules/webform_revisions/src/WebformRevisionsRequest.php \Drupal\webform_revisions\WebformRevisionsRequest::__construct()

Constructs a WebformRevisionsRequest 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\webform\WebformEntityReferenceManagerInterface $webform_entity_reference_manager: The webform entity reference manager.

\Drupal\webform\Plugin\WebformSourceEntityManagerInterface $webform_source_entity_manager: The webform source entity plugin manager.

Overrides WebformRequest::__construct

File

modules/webform_revisions/src/WebformRevisionsRequest.php, line 110

Class

WebformRevisionsRequest
Handles webform requests.

Namespace

Drupal\webform_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, WebformEntityReferenceManagerInterface $webform_entity_reference_manager, WebformSourceEntityManagerInterface $webform_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->webformEntityReferenceManager = $webform_entity_reference_manager;
  $this->webformSourceEntityManager = $webform_source_entity_manager;
}