You are here

public function WSDataAdminForm::submitForm in Web Service Data 8

Same name and namespace in other branches
  1. 2.0.x src/Form/WSDataAdminForm.php \Drupal\wsdata\Form\WSDataAdminForm::submitForm()

Form submission 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.

Overrides ConfigFormBase::submitForm

File

src/Form/WSDataAdminForm.php, line 92

Class

WSDataAdminForm
Admin form for the WSData module.

Namespace

Drupal\wsdata\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $values = $form_state
    ->getValues();
  $this->state
    ->set('wsdata_debug_mode', $values['debug_mode']);
  $this->state
    ->set('wsdata_performance_log', $values['performance_log']);
  parent::submitForm($form, $form_state);
}