function RssFeedsForm::submitForm
Same name in other branches
- 9 core/modules/system/src/Form/RssFeedsForm.php \Drupal\system\Form\RssFeedsForm::submitForm()
Overrides ConfigFormBase::submitForm
File
-
core/
modules/ system/ src/ Form/ RssFeedsForm.php, line 66
Class
- RssFeedsForm
- Configure RSS settings for this site
Namespace
Drupal\system\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->config('system.rss')
->set('channel.description', $form_state->getValue('feed_description'))
->set('items.limit', $form_state->getValue('feed_default_items'))
->set('items.view_mode', $form_state->getValue('feed_view_mode'))
->save();
parent::submitForm($form, $form_state);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.