public function SyncingSettingsForm::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/ SyncingSettingsForm.php, line 105
Class
- SyncingSettingsForm
- 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('unique_id', $form_state
->getValue('unique_id'));
$config
->set('user_name', $form_state
->getValue('user_name'));
$config
->set('sync.user_name', $form_state
->getValue('user_name_sync'));
$config
->set('mail_attr', $form_state
->getValue('mail_attr'));
$config
->set('sync.mail', $form_state
->getValue('mail_attr_sync'));
$config
->set('role.population', $form_state
->getValue('role_population'));
$config
->set('role.eval_every_time', $form_state
->getValue('role_eval_every_time'));
$config
->set('autoenablesaml', $form_state
->getValue('autoenablesaml'));
$config
->save();
}