You are here

public function SettingsForm::submitForm in jQuery waypoints 8

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/SettingsForm.php, line 70

Class

SettingsForm
Copyprevention Settings Form class.

Namespace

Drupal\waypoints\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this->config
    ->set('waypoints_always_add_js', $form_state
    ->getValue('waypoints_always_add_js'))
    ->save();
  parent::submitForm($form, $form_state);
}