public function Rss::buildOptionsForm_summary_options

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

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

File

drupal/core/modules/node/lib/Drupal/node/Plugin/views/row/Rss.php, line 66
Definition of Drupal\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

Drupal\node\Plugin\views\row

Code

public function buildOptionsForm_summary_options() {
  $view_modes = entity_get_view_modes('node');
  $options = array();
  foreach ($view_modes as $mode => $settings) {
    $options[$mode] = $settings['label'];
  }
  $options['title'] = t('Title only');
  $options['default'] = t('Use site default RSS settings');
  return $options;
}