public function LinkedInAuthSettingsForm::submitForm in Social Auth LinkedIn 3.x
Same name and namespace in other branches
- 8.2 src/Form/LinkedInAuthSettingsForm.php \Drupal\social_auth_linkedin\Form\LinkedInAuthSettingsForm::submitForm()
- 8 src/Form/LinkedinAuthSettingsForm.php \Drupal\social_auth_linkedin\Form\LinkedinAuthSettingsForm::submitForm()
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 SocialAuthSettingsForm::submitForm
File
- src/
Form/ LinkedInAuthSettingsForm.php, line 101
Class
- LinkedInAuthSettingsForm
- Settings form for Social Auth LinkedIn.
Namespace
Drupal\social_auth_linkedin\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
$this
->config('social_auth_linkedin.settings')
->set('client_id', $values['client_id'])
->set('client_secret', $values['client_secret'])
->set('scopes', $values['scopes'])
->set('endpoints', $values['endpoints'])
->save();
parent::submitForm($form, $form_state);
}