You are here

public function Rss::buildOptionsForm in Views (for Drupal 7) 8.3

Same name in this branch
  1. 8.3 lib/Views/node/Plugin/views/row/Rss.php \Views\node\Plugin\views\row\Rss::buildOptionsForm()
  2. 8.3 lib/Views/comment/Plugin/views/row/Rss.php \Views\comment\Plugin\views\row\Rss::buildOptionsForm()
  3. 8.3 lib/Views/aggregator/Plugin/views/row/Rss.php \Views\aggregator\Plugin\views\row\Rss::buildOptionsForm()
  4. 8.3 lib/Drupal/views/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

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