You are here

public function FacebookAuthSettingsForm::submitForm in Social Auth Facebook 8.2

Same name and namespace in other branches
  1. 8 src/Form/FacebookAuthSettingsForm.php \Drupal\social_auth_facebook\Form\FacebookAuthSettingsForm::submitForm()
  2. 3.x src/Form/FacebookAuthSettingsForm.php \Drupal\social_auth_facebook\Form\FacebookAuthSettingsForm::submitForm()

File

src/Form/FacebookAuthSettingsForm.php, line 182

Class

FacebookAuthSettingsForm
Settings form for Social Auth Facebook.

Namespace

Drupal\social_auth_facebook\Form

Code

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);
}