public function FacebookAuthSettingsForm::submitForm in Social Auth Facebook 3.x
Same name and namespace in other branches
- 8.2 src/Form/FacebookAuthSettingsForm.php \Drupal\social_auth_facebook\Form\FacebookAuthSettingsForm::submitForm()
- 8 src/Form/FacebookAuthSettingsForm.php \Drupal\social_auth_facebook\Form\FacebookAuthSettingsForm::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/ FacebookAuthSettingsForm.php, line 182
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'])
->set('scopes', $values['scopes'])
->set('endpoints', $values['endpoints'])
->save();
parent::submitForm($form, $form_state);
}