function RssFields::defineOptions

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.