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

Breadcrumb

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

function Fields::defineOptions

Overrides RowPluginBase::defineOptions

2 calls to Fields::defineOptions()
EntityReference::defineOptions in core/modules/views/src/Plugin/views/row/EntityReference.php
Information about options for all kinds of purposes will be held here.
EntityReference::defineOptions in core/modules/views/src/Plugin/views/row/EntityReference.php
Information about options for all kinds of purposes will be held here.
1 method overrides Fields::defineOptions()
EntityReference::defineOptions in core/modules/views/src/Plugin/views/row/EntityReference.php
Information about options for all kinds of purposes will be held here.

File

core/modules/views/src/Plugin/views/row/Fields.php, line 33

Class

Fields
The basic 'fields' row plugin.

Namespace

Drupal\views\Plugin\views\row

Code

protected function defineOptions() {
    $options = parent::defineOptions();
    $options['inline'] = [
        'default' => [],
    ];
    $options['separator'] = [
        'default' => '',
    ];
    $options['hide_empty'] = [
        'default' => FALSE,
    ];
    $options['default_field_elements'] = [
        'default' => TRUE,
    ];
    return $options;
}

API Navigation

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