You are here

public function WebformSubmissionViewController::__construct in Webform 8.5

Creates an WebformSubmissionViewController object.

Parameters

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

\Drupal\Core\Render\RendererInterface $renderer: The renderer service.

\Drupal\Core\Session\AccountInterface $current_user: The current user.

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

Overrides EntityViewController::__construct

File

src/Controller/WebformSubmissionViewController.php, line 47

Class

WebformSubmissionViewController
Defines a controller to render a single webform submission.

Namespace

Drupal\webform\Controller

Code

public function __construct(EntityManagerInterface $entity_manager, RendererInterface $renderer, AccountInterface $current_user, WebformRequestInterface $webform_request) {
  parent::__construct($entity_manager, $renderer);
  $this->currentUser = $current_user;
  $this->requestHandler = $webform_request;
}