You are here

public function YamlFormRequest::__construct in YAML Form 8

Constructs a YamlFormSubmissionExporter object.

Parameters

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

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

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

File

src/YamlFormRequest.php, line 55

Class

YamlFormRequest
Handles form requests.

Namespace

Drupal\yamlform

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, EntityTypeRepositoryInterface $entity_type_repository, RequestStack $request_stack, RouteMatchInterface $route_match) {
  $this->entityTypeManager = $entity_type_manager;
  $this->entityTypeRepository = $entity_type_repository;
  $this->request = $request_stack
    ->getCurrentRequest();
  $this->routeMatch = $route_match;
}