You are here

protected function YamlFormSubmissionForm::prepopulateData in YAML Form 8

Prepopulate element data.

Parameters

array $data: An array of default.

1 call to YamlFormSubmissionForm::prepopulateData()
YamlFormSubmissionForm::form in src/YamlFormSubmissionForm.php
Gets the actual form array to be built.

File

src/YamlFormSubmissionForm.php, line 1250

Class

YamlFormSubmissionForm
Provides a form to collect and edit submissions.

Namespace

Drupal\yamlform

Code

protected function prepopulateData(array &$data) {
  if ($this
    ->getYamlFormSetting('form_prepopulate')) {
    $data += $this
      ->getRequest()->query
      ->all();
  }
}