public function Rss::buildOptionsForm in Drupal 9
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/style/Rss.php \Drupal\views\Plugin\views\style\Rss::buildOptionsForm()
Provide a form to edit options for this plugin.
Overrides StylePluginBase::buildOptionsForm
File
- core/
modules/ views/ src/ Plugin/ views/ style/ Rss.php, line 62
Class
- Rss
- Default style plugin to render an RSS feed.
Namespace
Drupal\views\Plugin\views\styleCode
public function buildOptionsForm(&$form, FormStateInterface $form_state) {
parent::buildOptionsForm($form, $form_state);
$form['description'] = [
'#type' => 'textfield',
'#title' => $this
->t('RSS description'),
'#default_value' => $this->options['description'],
'#description' => $this
->t('This will appear in the RSS feed itself.'),
'#maxlength' => 1024,
];
}