public function AdvancedSettings::submitForm in Shibboleth Authentication 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/ AdvancedSettings.php, line 139
Class
- AdvancedSettings
- Class AdvancedSettings.
Namespace
Drupal\shib_auth\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this
->config('shib_auth.advancedsettings')
->set('url_redirect_logout', $form_state
->getValue('url_redirect_logout'))
->set('logout_error_message', $form_state
->getValue('logout_error_message'))
->set('url_redirect_login', $form_state
->getValue('url_redirect_login'))
->save();
// Invalidate the cache for the Shib login block.
\Drupal::service('cache_tags.invalidator')
->invalidateTags([
'shibboleth_login_block',
]);
}