You are here

public function SettingsForm::submitForm in DrupalAuth for SimpleSAMLphp 8

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/SettingsForm.php, line 80

Class

SettingsForm
Configure DrupalAuth for SimpleSAMLphp settings for this site.

Namespace

Drupal\drupalauth4ssp\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $this
    ->config('drupalauth4ssp.settings')
    ->set('authsource', $form_state
    ->getValue('authsource'))
    ->set('returnto_list', $form_state
    ->getValue('returnto_list'))
    ->set('idp_logout_returnto', $form_state
    ->getValue('idp_logout_returnto'))
    ->save();
  parent::submitForm($form, $form_state);
}