public function GooglePlusSettingsForm::submitForm in Easy Social 8.4
Same name and namespace in other branches
- 8.3 src/Form/GooglePlusSettingsForm.php \Drupal\easy_social\Form\GooglePlusSettingsForm::submitForm()
Implements \Drupal\Core\Form\FormInterface::submitForm().
Overrides ConfigFormBase::submitForm
File
- src/
Form/ GooglePlusSettingsForm.php, line 138 - Contains \Drupal\easy_social\GooglePlusSettingsForm.
Class
- GooglePlusSettingsForm
- Configure user settings for this site.
Namespace
Drupal\easy_social\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$config = $this
->config('easy_social.googleplus');
$config
->set('size', $form_state
->getValue('size'))
->set('annotation', $form_state
->getValue('annotation'))
->set('width', $form_state
->getValue('width'))
->set('lang', $form_state
->getValue('lang'))
->save();
}