Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. OpmlFields.php

function OpmlFields::defineOptions

Overrides RowPluginBase::defineOptions

File

core/modules/views/src/Plugin/views/row/OpmlFields.php, line 31

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal