public function LinkedinAuthSettingsForm::submitForm in Social Auth LinkedIn 8
Same name and namespace in other branches
- 8.2 src/Form/LinkedInAuthSettingsForm.php \Drupal\social_auth_linkedin\Form\LinkedInAuthSettingsForm::submitForm()
- 3.x src/Form/LinkedInAuthSettingsForm.php \Drupal\social_auth_linkedin\Form\LinkedInAuthSettingsForm::submitForm()
File
- src/
Form/ LinkedinAuthSettingsForm.php, line 61
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'])
->save();
parent::submitForm($form, $form_state);
}