public function FacebookAuthSettingsForm::submitForm in Social Auth Facebook 8
Same name and namespace in other branches
- 8.2 src/Form/FacebookAuthSettingsForm.php \Drupal\social_auth_facebook\Form\FacebookAuthSettingsForm::submitForm()
- 3.x src/Form/FacebookAuthSettingsForm.php \Drupal\social_auth_facebook\Form\FacebookAuthSettingsForm::submitForm()
File
- src/
Form/ FacebookAuthSettingsForm.php, line 151
Class
- FacebookAuthSettingsForm
- Settings form for Social Auth Facebook.
Namespace
Drupal\social_auth_facebook\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
$this
->config('social_auth_facebook.settings')
->set('app_id', $values['app_id'])
->set('app_secret', $values['app_secret'])
->set('graph_version', $values['graph_version'])
->save();
parent::submitForm($form, $form_state);
}