function Field::add_field_table

Determine if the field table should be added to the query.

1 call to Field::add_field_table()
Field::query in drupal/core/modules/field/lib/Drupal/field/Plugin/views/field/Field.php
Called to add the field to a query.

File

drupal/core/modules/field/lib/Drupal/field/Plugin/views/field/Field.php, line 258
Definition of Drupal\field\Plugin\views\field\Field.

Class

Field
A field that displays fieldapi fields.

Namespace

Drupal\field\Plugin\views\field

Code

function add_field_table($use_groupby) {

  // Grouping is enabled.
  if ($use_groupby) {
    return TRUE;
  }

  // This a multiple value field, but "group multiple values" is not checked.
  if ($this->multiple && !$this->options['group_rows']) {
    return TRUE;
  }
  return FALSE;
}