function RssPluginBase::buildOptionsForm_summary_options

Same name and namespace in other branches
  1. 8.9.x 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()
  3. 11.x 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 98

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.