function Rss::options_form_summary_options in Views (for Drupal 7) 8.3
Return the main options, which are shown in the summary title
@todo: Maybe provide a views_plugin_row_rss_entity and reuse this method in views_plugin_row_comment|node_rss.inc
See also
views_plugin_row_node_rss::options_form_summary_options()
1 call to Rss::options_form_summary_options()
- Rss::buildOptionsForm in lib/
Views/ comment/ Plugin/ views/ row/ Rss.php - Provide a form for setting options.
File
- lib/
Views/ comment/ Plugin/ views/ row/ Rss.php, line 81 - Definition of Views\comment\Plugin\views\row\Rss.
Class
- Rss
- Plugin which formats the comments as RSS items.
Namespace
Views\comment\Plugin\views\rowCode
function options_form_summary_options() {
$entity_info = entity_get_info('node');
$options = array();
if (!empty($entity_info['view modes'])) {
foreach ($entity_info['view modes'] as $mode => $settings) {
$options[$mode] = $settings['label'];
}
}
$options['title'] = t('Title only');
$options['default'] = t('Use site default RSS settings');
return $options;
}