public function QueryInterface::count in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/Query/QueryInterface.php \Drupal\Core\Entity\Query\QueryInterface::count()
- 9 core/lib/Drupal/Core/Entity/Query/QueryInterface.php \Drupal\Core\Entity\Query\QueryInterface::count()
Makes this a count query.
For count queries, execute() returns the number entities found.
Return value
$this
1 method overrides QueryInterface::count()
- QueryBase::count in core/
lib/ Drupal/ Core/ Entity/ Query/ QueryBase.php - Makes this a count query.
File
- core/
lib/ Drupal/ Core/ Entity/ Query/ QueryInterface.php, line 198
Class
- QueryInterface
- Interface for entity queries.
Namespace
Drupal\Core\Entity\QueryCode
public function count();