You are here

public function WebformDevelSubmissionApiForm::__construct in Webform 8.5

Constructs a WebformDevelSubmissionApiForm object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

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

\Drupal\webform\WebformSubmissionGenerateInterface $submission_generate: The webform submission generation service.

File

modules/webform_devel/src/Form/WebformDevelSubmissionApiForm.php, line 52

Class

WebformDevelSubmissionApiForm
Form used to test programmatic submissions of webforms.

Namespace

Drupal\webform_devel\Form

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, WebformRequestInterface $request_handler, WebformSubmissionGenerateInterface $submission_generate) {
  $this->submissionStorage = $entity_type_manager
    ->getStorage('webform_submission');
  $this->requestHandler = $request_handler;
  $this->generate = $submission_generate;
}