You are here

public function EntityField::add_field_table in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/views/src/Plugin/views/field/EntityField.php \Drupal\views\Plugin\views\field\EntityField::add_field_table()

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

1 call to EntityField::add_field_table()
EntityField::query in core/modules/views/src/Plugin/views/field/EntityField.php
Called to add the field to a query.

File

core/modules/views/src/Plugin/views/field/EntityField.php, line 278

Class

EntityField
A field that displays entity field data.

Namespace

Drupal\views\Plugin\views\field

Code

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