Open generator
What is?
Rather than querying the database directly, Drupal provides a helper class, EntityQuery, to make things a bit easier - entityQuery allows developers to query Drupal entities and fields in a SQL-like way.
How to use?
Use the EntityQuery service to construct and execute a query or load the corresponding entity objects.
Used template:
Technology