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 for setting options.

Overrides RowPluginBase::buildOptionsForm

File

lib/Views/comment/Plugin/views/row/Rss.php, line 41
Definition of Views\comment\Plugin\views\row\Rss.

Class

Rss
Plugin which formats the comments as RSS items.

Namespace

Views\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'],
  );
}