function Rss::buildOptionsForm

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()
  2. 8.9.x core/modules/views/src/Plugin/views/style/Rss.php \Drupal\views\Plugin\views\style\Rss::buildOptionsForm()
  3. 11.x core/modules/views/src/Plugin/views/style/Rss.php \Drupal\views\Plugin\views\style\Rss::buildOptionsForm()

Overrides StylePluginBase::buildOptionsForm

File

core/modules/views/src/Plugin/views/style/Rss.php, line 74

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.