public function QueryInterface::execute in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Entity/Query/QueryInterface.php \Drupal\Core\Entity\Query\QueryInterface::execute()
- 9 core/lib/Drupal/Core/Entity/Query/QueryInterface.php \Drupal\Core\Entity\Query\QueryInterface::execute()
Execute the query.
Return value
int|array Returns an integer for count queries or an array of ids. The values of the array are always entity ids. The keys will be revision ids if the entity supports revision and entity ids if not.
1 method overrides QueryInterface::execute()
- QueryAggregateInterface::execute in core/
lib/ Drupal/ Core/ Entity/ Query/ QueryAggregateInterface.php - Executes the aggregate query.
File
- core/
lib/ Drupal/ Core/ Entity/ Query/ QueryInterface.php, line 231
Class
- QueryInterface
- Interface for entity queries.
Namespace
Drupal\Core\Entity\QueryCode
public function execute();