You are here

protected function Query::finish in Workspace 8.2

Finish the query by adding fields, GROUP BY and range.

Return value

$this Returns the called object.

Overrides Query::finish

File

src/EntityQuery/Query.php, line 55

Class

Query
Alters entity queries to use a workspace revision instead of the default one.

Namespace

Drupal\workspace\EntityQuery

Code

protected function finish() {
  foreach ($this->sqlExpressions as $alias => $expression) {
    $this->sqlQuery
      ->addExpression($expression, $alias);
  }
  return parent::finish();
}