You are here

public function YamlFormResultsExportForm::delete in YAML Form 8

Form delete 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/YamlFormResultsExportForm.php, line 133

Class

YamlFormResultsExportForm
Form for form results export form.

Namespace

Drupal\yamlform\Form

Code

public function delete(array &$form, FormStateInterface $form_state) {
  $this->submissionExporter
    ->deleteYamlFormOptions();
  drupal_set_message($this
    ->t('The download settings have been reset.'));
}