You are here

public function YamlFormSubmissionDeleteForm::buildForm in YAML Form 8

Form constructor.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Return value

array The form structure.

Overrides ContentEntityDeleteForm::buildForm

File

src/Form/YamlFormSubmissionDeleteForm.php, line 72

Class

YamlFormSubmissionDeleteForm
Provides a confirmation form for deleting a form submission.

Namespace

Drupal\yamlform\Form

Code

public function buildForm(array $form, FormStateInterface $form_state) {
  list($this->yamlformSubmission, $this->sourceEntity) = $this->requestHandler
    ->getYamlFormSubmissionEntities();
  $this->yamlform = $this->yamlformSubmission
    ->getYamlForm();
  return parent::buildForm($form, $form_state);
}