You are here

public function WebformResultsExportForm::save in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Form/WebformResultsExportForm.php \Drupal\webform\Form\WebformResultsExportForm::save()

Webform save configuration handler.

Parameters

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

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

File

src/Form/WebformResultsExportForm.php, line 118

Class

WebformResultsExportForm
Webform for webform results export webform.

Namespace

Drupal\webform\Form

Code

public function save(array &$form, FormStateInterface $form_state) {

  // Save the export options to the webform's state.
  $export_options = $this->submissionExporter
    ->getValuesFromInput($form_state
    ->getValues());
  $this->submissionExporter
    ->setWebformOptions($export_options);
  $this
    ->messenger()
    ->addStatus($this
    ->t('The download settings have been saved.'));
}