public function LinkedInSettingsForm::submitForm in Easy Social 8.3
Same name and namespace in other branches
- 8.4 src/Form/LinkedInSettingsForm.php \Drupal\easy_social\Form\LinkedInSettingsForm::submitForm()
Implements \Drupal\Core\Form\FormInterface::submitForm().
Overrides ConfigFormBase::submitForm
File
- src/
Form/ LinkedInSettingsForm.php, line 131 - Contains \Drupal\easy_social\LinkedInSettingsForm.
Class
- LinkedInSettingsForm
- 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.linkedin');
$config
->set('counter', $form_state
->getValue('counter'))
->set('lang', $form_state
->getValue('lang'))
->save();
}