You are here

public function Rss::buildOptionsForm in Drupal 8

Same name and namespace in other branches
  1. 9 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\style

Code

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,
  ];
}