You are here

public function RssPluginBase::buildOptionsForm_summary_options in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/row/RssPluginBase.php \Drupal\views\Plugin\views\row\RssPluginBase::buildOptionsForm_summary_options()
  2. 10 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 110

Class

RssPluginBase
Base class for Views RSS row plugins.

Namespace

Drupal\views\Plugin\views\row

Code

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