public function WebformRequest::__construct in Webform 8.5
Same name and namespace in other branches
- 6.x src/WebformRequest.php \Drupal\webform\WebformRequest::__construct()
Constructs a WebformRequest 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.
File
- src/
WebformRequest.php, line 104
Class
- WebformRequest
- Handles webform requests.
Namespace
Drupal\webformCode
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;
}