public function Rss::buildOptionsForm

Same name in this branch

Provide a form to edit options for this plugin.

Overrides StylePluginBase::buildOptionsForm

File

drupal/core/modules/views/lib/Drupal/views/Plugin/views/style/Rss.php, line 77
Definition of Drupal\views\Plugin\views\style\Rss.

Class

Rss
Default style plugin to render an RSS feed.

Namespace

Drupal\views\Plugin\views\style

Code

public function buildOptionsForm(&$form, &$form_state) {
  parent::buildOptionsForm($form, $form_state);
  $form['description'] = array(
    '#type' => 'textfield',
    '#title' => t('RSS description'),
    '#default_value' => $this->options['description'],
    '#description' => t('This will appear in the RSS feed itself.'),
    '#maxlength' => 1024,
  );
}