function RssFeedsForm::buildForm
Same name in other branches
- 9 core/modules/system/src/Form/RssFeedsForm.php \Drupal\system\Form\RssFeedsForm::buildForm()
- 8.9.x core/modules/system/src/Form/RssFeedsForm.php \Drupal\system\Form\RssFeedsForm::buildForm()
- 10 core/modules/system/src/Form/RssFeedsForm.php \Drupal\system\Form\RssFeedsForm::buildForm()
Overrides ConfigFormBase::buildForm
File
-
core/
modules/ system/ src/ Form/ RssFeedsForm.php, line 32
Class
- RssFeedsForm
- Configure RSS settings for this site.
Namespace
Drupal\system\FormCode
public function buildForm(array $form, FormStateInterface $form_state) {
$form['feed_view_mode'] = [
'#type' => 'select',
'#title' => $this->t('Feed content'),
'#config_target' => 'system.rss:items.view_mode',
'#options' => [
'title' => $this->t('Titles only'),
'teaser' => $this->t('Titles plus teaser'),
'fulltext' => $this->t('Full text'),
],
'#description' => $this->t('Global setting for the default display of content items in each feed.'),
];
return parent::buildForm($form, $form_state);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.