You are here

public function YamlFormSubmissionsDeleteFormBase::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 ConfirmFormBase::buildForm

1 call to YamlFormSubmissionsDeleteFormBase::buildForm()
YamlFormSubmissionsPurgeForm::buildForm in src/Form/YamlFormSubmissionsPurgeForm.php
Form constructor.
1 method overrides YamlFormSubmissionsDeleteFormBase::buildForm()
YamlFormSubmissionsPurgeForm::buildForm in src/Form/YamlFormSubmissionsPurgeForm.php
Form constructor.

File

src/Form/YamlFormSubmissionsDeleteFormBase.php, line 86

Class

YamlFormSubmissionsDeleteFormBase
Base form for deleting form submission.

Namespace

Drupal\yamlform\Form

Code

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