You are here

public function WebformSubmissionViewBuilder::__construct in Webform 8.5

Constructs a WebformSubmissionViewBuilder.

@todo Webform 8.x-6.x: Move $route_match before $webform_request.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\Core\Entity\EntityManagerInterface $entity_manager: The entity manager service.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

\Drupal\webform\WebformRequestInterface $webform_request: The webform request handler.

\Drupal\webform\Plugin\WebformElementManagerInterface $element_manager: The webform element manager service.

\Drupal\webform\WebformSubmissionConditionsValidatorInterface $conditions_validator: The webform submission conditions (#states) validator.

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

Overrides EntityViewBuilder::__construct

File

src/WebformSubmissionViewBuilder.php, line 73

Class

WebformSubmissionViewBuilder
Render controller for webform submissions.

Namespace

Drupal\webform

Code

public function __construct(EntityTypeInterface $entity_type, EntityManagerInterface $entity_manager, LanguageManagerInterface $language_manager, WebformRequestInterface $webform_request, WebformElementManagerInterface $element_manager, WebformSubmissionConditionsValidatorInterface $conditions_validator, RouteMatchInterface $route_match = NULL) {
  parent::__construct($entity_type, $entity_manager, $language_manager);
  $this->requestHandler = $webform_request;
  $this->elementManager = $element_manager;
  $this->conditionsValidator = $conditions_validator;
  $this->routeMatch = $route_match ?: \Drupal::routeMatch();
}