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