public function LinkedInAuthSettingsForm::submitForm in Open Social 8
Same name and namespace in other branches
- 8.9 modules/custom/social_auth_linkedin/src/Form/LinkedInAuthSettingsForm.php \Drupal\social_auth_linkedin\Form\LinkedInAuthSettingsForm::submitForm()
- 8.2 modules/custom/social_auth_linkedin/src/Form/LinkedInAuthSettingsForm.php \Drupal\social_auth_linkedin\Form\LinkedInAuthSettingsForm::submitForm()
- 8.3 modules/custom/social_auth_linkedin/src/Form/LinkedInAuthSettingsForm.php \Drupal\social_auth_linkedin\Form\LinkedInAuthSettingsForm::submitForm()
- 8.4 modules/custom/social_auth_linkedin/src/Form/LinkedInAuthSettingsForm.php \Drupal\social_auth_linkedin\Form\LinkedInAuthSettingsForm::submitForm()
- 8.5 modules/custom/social_auth_linkedin/src/Form/LinkedInAuthSettingsForm.php \Drupal\social_auth_linkedin\Form\LinkedInAuthSettingsForm::submitForm()
- 8.6 modules/custom/social_auth_linkedin/src/Form/LinkedInAuthSettingsForm.php \Drupal\social_auth_linkedin\Form\LinkedInAuthSettingsForm::submitForm()
- 8.7 modules/custom/social_auth_linkedin/src/Form/LinkedInAuthSettingsForm.php \Drupal\social_auth_linkedin\Form\LinkedInAuthSettingsForm::submitForm()
- 8.8 modules/custom/social_auth_linkedin/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 ConfigFormBase::submitForm
File
- modules/
custom/ social_auth_linkedin/ src/ Form/ LinkedInAuthSettingsForm.php, line 72
Class
- LinkedInAuthSettingsForm
- Class LinkedInAuthSettingsForm.
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('status', $values['status'])
->save();
parent::submitForm($form, $form_state);
}