You are here

function simple_oauth_extras_form_oauth2_token_settings_submit in Simple OAuth (OAuth2) & OpenID Connect 8.3

Same name and namespace in other branches
  1. 8.2 simple_oauth_extras/simple_oauth_extras.module \simple_oauth_extras_form_oauth2_token_settings_submit()

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.

1 string reference to 'simple_oauth_extras_form_oauth2_token_settings_submit'
simple_oauth_extras_form_oauth2_token_settings_alter in simple_oauth_extras/simple_oauth_extras.module
Implements hook_form_FORM_ID_alter().

File

simple_oauth_extras/simple_oauth_extras.module, line 36
Module implementation file.

Code

function simple_oauth_extras_form_oauth2_token_settings_submit(array &$form, FormStateInterface $form_state) {
  $settings = \Drupal::configFactory()
    ->getEditable('simple_oauth_extras.settings');
  $settings
    ->set('use_implicit', $form_state
    ->getValue('use_implicit'));
  $settings
    ->save();
}