You are here

public function Rss::buildOptionsForm in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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 69
Contains \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, FormStateInterface $form_state) {
  parent::buildOptionsForm($form, $form_state);
  $form['description'] = array(
    '#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,
  );
}