public function SpamicideSettingsForm::submitForm in Spamicide 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/ SpamicideSettingsForm.php, line 51
Class
- SpamicideSettingsForm
- Configure Spamicide settings for this site.
Namespace
Drupal\spamicide\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('spamicide.settings')
->set('spamicide_admin_mode', $form_state
->getValue('spamicide_admin_mode'))
->set('spamicide_log_attempts', $form_state
->getValue('spamicide_log_attempts'))
->save();
parent::submitForm($form, $form_state);
}