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