You are here

protected function RssFields::defineOptions in Zircon Profile 8.0

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()

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 33
Contains \Drupal\views\Plugin\views\row\RssFields.

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'] = array(
    'default' => '',
  );
  $options['link_field'] = array(
    'default' => '',
  );
  $options['description_field'] = array(
    'default' => '',
  );
  $options['creator_field'] = array(
    'default' => '',
  );
  $options['date_field'] = array(
    'default' => '',
  );
  $options['guid_field_options']['contains']['guid_field'] = array(
    'default' => '',
  );
  $options['guid_field_options']['contains']['guid_field_is_permalink'] = array(
    'default' => TRUE,
  );
  return $options;
}