function DataFieldRow::defineOptions

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

Overrides RowPluginBase::defineOptions

File

core/modules/rest/src/Plugin/views/row/DataFieldRow.php, line 62

Class

DataFieldRow
Plugin which displays fields as raw data.

Namespace

Drupal\rest\Plugin\views\row

Code

protected function defineOptions() {
    $options = parent::defineOptions();
    $options['field_options'] = [
        'default' => [],
    ];
    return $options;
}

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