public function BasicSettingsForm::submitForm in simpleSAMLphp Authentication 8.3
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/ BasicSettingsForm.php, line 116
Class
- BasicSettingsForm
- Form builder for the simplesamlphp_auth basic settings form.
Namespace
Drupal\simplesamlphp_auth\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$config = $this
->config('simplesamlphp_auth.settings');
$config
->set('activate', $form_state
->getValue('activate'));
$config
->set('auth_source', $form_state
->getValue('auth_source'));
$config
->set('login_link_display_name', $form_state
->getValue('login_link_display_name'));
$config
->set('login_link_show', $form_state
->getValue('login_link_show'));
$config
->set('debug', $form_state
->getValue('debug'));
$config
->set('secure', $form_state
->getValue('secure'));
$config
->set('httponly', $form_state
->getValue('httponly'));
$config
->set('register_users', $form_state
->getValue('register_users'));
$config
->set('header_no_cache', $form_state
->getValue('header_no_cache'));
$config
->save();
}