protected QueryAggregate::result()
Overrides \Drupal\Core\Entity\Query\Sql\Query::result().
array|int Returns the aggregated result, or a number if it's a count query.
Overrides Query::result
protected function result() { if ($this->count) { return parent::result(); } $return = array(); foreach ($this->sqlQuery->execute() as $row) { $return[] = (array) $row; } return $return; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Entity!Query!Sql!QueryAggregate.php/function/QueryAggregate::result/8.1.x