public function GoogleAuthSettingsForm::submitForm in Social Auth Google 8.2
Same name and namespace in other branches
- 8 src/Form/GoogleAuthSettingsForm.php \Drupal\social_auth_google\Form\GoogleAuthSettingsForm::submitForm()
- 3.x src/Form/GoogleAuthSettingsForm.php \Drupal\social_auth_google\Form\GoogleAuthSettingsForm::submitForm()
File
- src/
Form/ GoogleAuthSettingsForm.php, line 116
Class
- GoogleAuthSettingsForm
- Settings form for Social Auth Google.
Namespace
Drupal\social_auth_google\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
$this
->config('social_auth_google.settings')
->set('client_id', trim($values['client_id']))
->set('client_secret', trim($values['client_secret']))
->set('scopes', $values['scopes'])
->set('endpoints', $values['endpoints'])
->set('restricted_domain', $values['restricted_domain'])
->save();
parent::submitForm($form, $form_state);
}