function RssPluginBase::buildOptionsForm_summary_options

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.