function Fields::defineOptions

Same name in other branches
  1. 9 core/modules/views/src/Plugin/views/row/Fields.php \Drupal\views\Plugin\views\row\Fields::defineOptions()
  2. 8.9.x core/modules/views/src/Plugin/views/row/Fields.php \Drupal\views\Plugin\views\row\Fields::defineOptions()
  3. 11.x core/modules/views/src/Plugin/views/row/Fields.php \Drupal\views\Plugin\views\row\Fields::defineOptions()

Overrides RowPluginBase::defineOptions

1 call to Fields::defineOptions()
EntityReference::defineOptions in core/modules/views/src/Plugin/views/row/EntityReference.php
1 method overrides Fields::defineOptions()
EntityReference::defineOptions in core/modules/views/src/Plugin/views/row/EntityReference.php

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.