public function EntityFieldQuery::count

7.x entity.inc public EntityFieldQuery::count()

Sets the query to be a count query only.

Return value

EntityFieldQuery The called object.

File

drupal-7.x/includes/entity.inc, line 930

Class

EntityFieldQuery
Retrieves entities matching a given set of conditions.

Code

public function count() {
  $this->count = TRUE;
  return $this;
}