public function Rss::buildOptionsForm

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

Provide a form for setting options.

Overrides RowPluginBase::buildOptionsForm

File

drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/row/Rss.php, line 41
Definition of Drupal\comment\Plugin\views\row\Rss.

Class

Rss
Plugin which formats the comments as RSS items.

Namespace

Drupal\comment\Plugin\views\row

Code

public function buildOptionsForm(&$form, &$form_state) {
  parent::buildOptionsForm($form, $form_state);
  $form['item_length'] = array(
    '#type' => 'select',
    '#title' => t('Display type'),
    '#options' => $this
      ->options_form_summary_options(),
    '#default_value' => $this->options['item_length'],
  );
  $form['links'] = array(
    '#type' => 'checkbox',
    '#title' => t('Display links'),
    '#default_value' => $this->options['links'],
  );
}