You are here

public function RssPluginBase::buildOptionsForm_summary_options in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/views/src/Plugin/views/row/RssPluginBase.php \Drupal\views\Plugin\views\row\RssPluginBase::buildOptionsForm_summary_options()

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

3 calls to RssPluginBase::buildOptionsForm_summary_options()
Rss::buildOptionsForm_summary_options in core/modules/node/src/Plugin/views/row/Rss.php
Return the main options, which are shown in the summary title.
Rss::buildOptionsForm_summary_options in core/modules/comment/src/Plugin/views/row/Rss.php
Return the main options, which are shown in the summary title.
RssPluginBase::buildOptionsForm in core/modules/views/src/Plugin/views/row/RssPluginBase.php
Provide a form for setting options.
2 methods override RssPluginBase::buildOptionsForm_summary_options()
Rss::buildOptionsForm_summary_options in core/modules/node/src/Plugin/views/row/Rss.php
Return the main options, which are shown in the summary title.
Rss::buildOptionsForm_summary_options in core/modules/comment/src/Plugin/views/row/Rss.php
Return the main options, which are shown in the summary title.

File

core/modules/views/src/Plugin/views/row/RssPluginBase.php, line 91
Contains \Drupal\views\Plugin\views\row\RssPluginBase.

Class

RssPluginBase
Base class for Views RSS row plugins.

Namespace

Drupal\views\Plugin\views\row

Code

public function buildOptionsForm_summary_options() {
  $view_modes = $this->entityManager
    ->getViewModes($this->entityTypeId);
  $options = array();
  foreach ($view_modes as $mode => $settings) {
    $options[$mode] = $settings['label'];
  }
  return $options;
}