You are here

public function NoReqNewPassSettingsForm::submitForm in No Request New Password 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/NoReqNewPassSettingsForm.php, line 46

Class

NoReqNewPassSettingsForm
Configure hello settings for this site.

Namespace

Drupal\noreqnewpass\Form

Code

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