public function QueryInterface::count

Makes this a count query.

For count queries, execute() returns the number entities found.

Return value

\Drupal\Core\Entity\Query\QueryInterface The called object.

1 method overrides QueryInterface::count()
QueryBase::count in drupal/core/lib/Drupal/Core/Entity/Query/QueryBase.php
Implements Drupal\Core\Entity\Query\QueryInterface::count().

File

drupal/core/lib/Drupal/Core/Entity/Query/QueryInterface.php, line 133
Definition of Drupal\Core\Entity\QueryInterface.

Class

QueryInterface
Interface for entity queries.

Namespace

Drupal\Core\Entity\Query

Code

public function count();