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/aggregator/Plugin/views/row/Rss.php, line 39
Definition of Views\aggregator\Plugin\views\row\Rss.

Class

Rss
Plugin which loads an aggregator item and formats it as an RSS item.

Namespace

Views\aggregator\Plugin\views\row

Code

public function buildOptionsForm(&$form, &$form_state) {
  $form['item_length'] = array(
    '#type' => 'select',
    '#title' => t('Display type'),
    '#options' => array(
      'fulltext' => t('Full text'),
      'teaser' => t('Title plus teaser'),
      'title' => t('Title only'),
      'default' => t('Use default RSS settings'),
    ),
    '#default_value' => $this->options['item_length'],
  );
}