You are here

public function YamlFormResultsCustomForm::__construct in YAML Form 8

Constructs a new YamlFormResultsDeleteBaseForm object.

Parameters

\Drupal\yamlform\YamlFormSubmissionStorageInterface $yamlform_submission_storage: The form submission storage.

\Drupal\yamlform\YamlFormRequestInterface $request_handler: The form request handler.

File

src/Form/YamlFormResultsCustomForm.php, line 59

Class

YamlFormResultsCustomForm
Form for form results custom(ize) form.

Namespace

Drupal\yamlform\Form

Code

public function __construct(YamlFormSubmissionStorageInterface $yamlform_submission_storage, YamlFormRequestInterface $request_handler) {
  $this->submissionStorage = $yamlform_submission_storage;
  $this->requestHandler = $request_handler;
  list($this->yamlform, $this->sourceEntity) = $this->requestHandler
    ->getYamlFormEntities();
}