You are here

protected function RssFields::defineOptions in Podcast (using Views) 8

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 RssFields::defineOptions

File

src/Plugin/views/row/RssFields.php, line 28

Class

RssFields
Renders an RSS item based on fields.

Namespace

Drupal\podcast\Plugin\views\row

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['enclosure_field_options']['contains']['enclosure_field_url'] = [
    'default' => '',
  ];
  $options['enclosure_field_options']['contains']['enclosure_field_length'] = [
    'default' => '',
  ];
  $options['enclosure_field_options']['contains']['enclosure_field_type'] = [
    'default' => '',
  ];
  $options['itunes:author_field'] = [
    'default' => '',
  ];
  $options['itunes:keywords_field'] = [
    'default' => '',
  ];
  $options['itunes:explicit_field'] = [
    'default' => '',
  ];
  $options['itunes:duration_field'] = [
    'default' => '',
  ];
  $options['itunes:summary_field'] = [
    'default' => '',
  ];
  $options['itunes:image_field'] = [
    'default' => '',
  ];
  $options['itunes:season_field'] = [
    'default' => '',
  ];
  $options['itunes:episode_field'] = [
    'default' => '',
  ];
  return $options;
}