function QueryAggregate::prepare
Same name in this branch
- 8.9.x core/modules/workspaces/src/EntityQuery/QueryAggregate.php \Drupal\workspaces\EntityQuery\QueryAggregate::prepare()
Same name in other branches
- 9 core/modules/workspaces/src/EntityQuery/QueryAggregate.php \Drupal\workspaces\EntityQuery\QueryAggregate::prepare()
- 9 core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php \Drupal\Core\Entity\Query\Sql\QueryAggregate::prepare()
- 10 core/modules/workspaces/src/EntityQuery/QueryAggregate.php \Drupal\workspaces\EntityQuery\QueryAggregate::prepare()
- 10 core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php \Drupal\Core\Entity\Query\Sql\QueryAggregate::prepare()
- 11.x core/modules/workspaces/src/EntityQuery/QueryAggregate.php \Drupal\workspaces\EntityQuery\QueryAggregate::prepare()
- 11.x core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php \Drupal\Core\Entity\Query\Sql\QueryAggregate::prepare()
Overrides Query::prepare
1 method overrides QueryAggregate::prepare()
- QueryAggregate::prepare in core/
modules/ workspaces/ src/ EntityQuery/ QueryAggregate.php - Prepares the basic query with proper metadata/tags and base fields.
File
-
core/
lib/ Drupal/ Core/ Entity/ Query/ Sql/ QueryAggregate.php, line 39
Class
- QueryAggregate
- The SQL storage entity query aggregate class.
Namespace
Drupal\Core\Entity\Query\SqlCode
public function prepare() {
parent::prepare();
// Throw away the id fields.
$this->sqlFields = [];
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.