public function RssPluginBase::buildOptionsForm_summary_options in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Plugin/views/row/RssPluginBase.php \Drupal\views\Plugin\views\row\RssPluginBase::buildOptionsForm_summary_options()
- 9 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.
1 call to RssPluginBase::buildOptionsForm_summary_options()
- RssPluginBase::buildOptionsForm in core/
modules/ views/ src/ Plugin/ views/ row/ RssPluginBase.php
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\rowCode
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;
}