public function LoginSettingsForm::submitForm in Restrict Login or Role Access by IP Address 8.4
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/ LoginSettingsForm.php, line 96
Class
- LoginSettingsForm
- Class LoginSettingsForm.
Namespace
Drupal\restrict_by_ip\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('restrict_by_ip.settings')
->set('error_page', $form_state
->getValue('restrict_by_ip_error_page'))
->set('login_range', $form_state
->getValue('restrict_by_ip_login_range'))
->save();
}