public function NoAutoCompleteAdminSettingsForm::submitForm in No Autocomplete 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/ NoAutoCompleteAdminSettingsForm.php, line 44
Class
- NoAutoCompleteAdminSettingsForm
- Form to set our options..
Namespace
Drupal\no_autocomplete\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('no_autocomplete.settings')
->set('no_autocomplete_login_form', $form_state
->getValue('no_autocomplete_login_form'))
->save();
}