You are here

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

Return the main options, which are shown in the summary title.

2 calls to Rss::buildOptionsForm_summary_options()
Rss::buildOptionsForm in lib/Views/node/Plugin/views/row/Rss.php
Provide a form for setting options.
Rss::summaryTitle in lib/Views/node/Plugin/views/row/Rss.php
Returns the summary of the settings in the display.

File

lib/Views/node/Plugin/views/row/Rss.php, line 66
Definition of Views\node\Plugin\views\row\Rss.

Class

Rss
Plugin which performs a node_view on the resulting object and formats it as an RSS item.

Namespace

Views\node\Plugin\views\row

Code

public function buildOptionsForm_summary_options() {
  $entity_info = entity_get_info('node');
  $options = array();
  if (!empty($entity_info['view modes'])) {
    foreach ($entity_info['view modes'] as $mode => $settings) {
      $options[$mode] = $settings['label'];
    }
  }
  $options['title'] = t('Title only');
  $options['default'] = t('Use site default RSS settings');
  return $options;
}