public function RandomCaptchaTypeSettingsForm::submitForm in CAPTCHA Pack 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
- random_captcha_type/
src/ Form/ RandomCaptchaTypeSettingsForm.php, line 60
Class
- RandomCaptchaTypeSettingsForm
- Random CAPTCHA type settings form.
Namespace
Drupal\random_captcha_type\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('random_captcha_type.settings')
->set('random_captcha_type_enabled_types', $form_state
->getValue('random_captcha_type_enabled_types'))
->save();
parent::SubmitForm($form, $form_state);
}