You are here

protected function OpmlFields::defineOptions in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/row/OpmlFields.php \Drupal\views\Plugin\views\row\OpmlFields::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/OpmlFields.php, line 30

Class

OpmlFields
Renders an OPML item based on fields.

Namespace

Drupal\views\Plugin\views\row

Code

protected function defineOptions() {
  $options = parent::defineOptions();
  $options['text_field'] = [
    'default' => '',
  ];
  $options['created_field'] = [
    'default' => '',
  ];
  $options['type_field'] = [
    'default' => '',
  ];
  $options['description_field'] = [
    'default' => '',
  ];
  $options['html_url_field'] = [
    'default' => '',
  ];
  $options['language_field'] = [
    'default' => '',
  ];
  $options['xml_url_field'] = [
    'default' => '',
  ];
  $options['url_field'] = [
    'default' => '',
  ];
  return $options;
}