public function Rss::buildOptionsForm

Same name in this branch
  1. 9.x drupal/core/modules/views/lib/Drupal/views/Plugin/views/style/Rss.php \Drupal\views\Plugin\views\style\Rss::buildOptionsForm()
  2. 9.x drupal/core/modules/node/lib/Drupal/node/Plugin/views/row/Rss.php \Drupal\node\Plugin\views\row\Rss::buildOptionsForm()
  3. 9.x drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/row/Rss.php \Drupal\comment\Plugin\views\row\Rss::buildOptionsForm()

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 73
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,
  );
}