You are here

public function WebformSubmissionNotesForm::__construct in Webform 8.5

Constructs a ContentEntityForm object.

Parameters

\Drupal\Core\Entity\EntityRepositoryInterface $entity_repository: The entity repository.

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

\Drupal\Core\Entity\EntityTypeBundleInfoInterface $entity_type_bundle_info: The entity type bundle service.

\Drupal\Component\Datetime\TimeInterface $time: The time service.

Overrides ContentEntityForm::__construct

File

src/WebformSubmissionNotesForm.php, line 39

Class

WebformSubmissionNotesForm
Controller for webform submission notes.

Namespace

Drupal\webform

Code

public function __construct(EntityRepositoryInterface $entity_repository, WebformRequestInterface $webform_request, EntityTypeBundleInfoInterface $entity_type_bundle_info = NULL, TimeInterface $time = NULL) {

  // Calling the parent constructor.
  parent::__construct($entity_repository, $entity_type_bundle_info, $time);
  $this->requestHandler = $webform_request;
}