function EntityField::add_field_table
Same name in other branches
- 9 core/modules/views/src/Plugin/views/field/EntityField.php \Drupal\views\Plugin\views\field\EntityField::add_field_table()
- 10 core/modules/views/src/Plugin/views/field/EntityField.php \Drupal\views\Plugin\views\field\EntityField::add_field_table()
- 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 294
Class
- EntityField
- A field that displays entity field data.
Namespace
Drupal\views\Plugin\views\fieldCode
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.