protected function RssFields::defineOptions in Drupal 8
Same name and namespace in other branches
- 9 core/modules/views/src/Plugin/views/row/RssFields.php \Drupal\views\Plugin\views\row\RssFields::defineOptions()
- 10 core/modules/views/src/Plugin/views/row/RssFields.php \Drupal\views\Plugin\views\row\RssFields::defineOptions()
Information about options for all kinds of purposes will be held here.
'option_name' => array(
- 'default' => default value,
- 'contains' => (optional) array of items this contains, with its own
defaults, etc. If contains is set, the default will be ignored and
assumed to be array().
),
Return value
array Returns the options of this handler/plugin.
Overrides RowPluginBase::defineOptions
File
- core/
modules/ views/ src/ Plugin/ views/ row/ RssFields.php, line 28
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;
}