public function LocalSettingsForm::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/ LocalSettingsForm.php, line 78
Class
- LocalSettingsForm
- Form builder for the simplesamlphp_auth local 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('allow.default_login', $form_state
->getValue('allow_default_login'));
$config
->set('allow.set_drupal_pwd', $form_state
->getValue('allow_set_drupal_pwd'));
$config
->set('allow.default_login_roles', array_filter($form_state
->getValue('allow_default_login_roles')));
$config
->set('allow.default_login_users', $form_state
->getValue('allow_default_login_users'));
$config
->set('logout_goto_url', $form_state
->getValue('logout_goto_url'));
$config
->save();
}