function EntityField::add_field_table

Same name and namespace in other branches
  1. 9 core/modules/views/src/Plugin/views/field/EntityField.php \Drupal\views\Plugin\views\field\EntityField::add_field_table()
  2. 8.9.x core/modules/views/src/Plugin/views/field/EntityField.php \Drupal\views\Plugin\views\field\EntityField::add_field_table()
  3. 11.x 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 299

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

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