You are here

protected function RssFields::defineOptions in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/row/RssFields.php \Drupal\views\Plugin\views\row\RssFields::defineOptions()
  2. 9 core/modules/views/src/Plugin/views/row/RssFields.php \Drupal\views\Plugin\views\row\RssFields::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\row

Code

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;
}