function RssFields::defineOptions
Same name in other branches
- 9 core/modules/views/src/Plugin/views/row/RssFields.php \Drupal\views\Plugin\views\row\RssFields::defineOptions()
- 8.9.x core/modules/views/src/Plugin/views/row/RssFields.php \Drupal\views\Plugin\views\row\RssFields::defineOptions()
- 11.x core/modules/views/src/Plugin/views/row/RssFields.php \Drupal\views\Plugin\views\row\RssFields::defineOptions()
Overrides RowPluginBase::defineOptions
File
-
core/
modules/ views/ src/ Plugin/ views/ row/ RssFields.php, line 29
Class
- RssFields
- Renders an RSS item based on fields.
Namespace
Drupal\views\Plugin\views\rowCode
protected function defineOptions() {
$options = parent::defineOptions();
$options['title_field'] = [
'default' => '',
];
$options['link_field'] = [
'default' => '',
];
$options['description_field'] = [
'default' => '',
];
$options['creator_field'] = [
'default' => '',
];
$options['date_field'] = [
'default' => '',
];
$options['guid_field_options']['contains']['guid_field'] = [
'default' => '',
];
$options['guid_field_options']['contains']['guid_field_is_permalink'] = [
'default' => TRUE,
];
return $options;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.