You are here

public function QueryAggregate::prepare in Drupal 10

Same name in this branch
  1. 10 core/modules/workspaces/src/EntityQuery/QueryAggregate.php \Drupal\workspaces\EntityQuery\QueryAggregate::prepare()
  2. 10 core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php \Drupal\Core\Entity\Query\Sql\QueryAggregate::prepare()
Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php \Drupal\Core\Entity\Query\Sql\QueryAggregate::prepare()
  2. 9 core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php \Drupal\Core\Entity\Query\Sql\QueryAggregate::prepare()

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\Sql

Code

public function prepare() {
  parent::prepare();

  // Throw away the id fields.
  $this->sqlFields = [];
  return $this;
}