protected QueryAggregate::result()
Overrides \Drupal\Core\Entity\Query\Sql\Query::result().
Return value
array|int Returns the aggregated result, or a number if it's a count query.
Overrides Query::result
File
- core/lib/Drupal/Core/Entity/Query/Sql/QueryAggregate.php, line 169
Class
- QueryAggregate
- The SQL storage entity query aggregate class.
Namespace
Drupal\Core\Entity\Query\Sql
Code
protected function result() { if ($this->count) { return parent::result(); } $return = array(); foreach ($this->sqlQuery->execute() as $row) { $return[] = (array) $row; } return $return; }
Please login to continue.