public function GeneralSettingsForm::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/ GeneralSettingsForm.php, line 57
Class
- GeneralSettingsForm
- Class GeneralSettingsForm.
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('header', $form_state
->getValue('restrict_by_ip_header'))
->save();
}