Returns the entity query object for this entity type.
string $entity_type: The entity type, e.g. node, for which the query object should be returned.
string $conjunction: AND if all conditions in the query need to apply, OR if any of them is enough. Optional, defaults to AND.
\Drupal\Core\Entity\Query\QueryInterface The query object that can query the given entity type.
public static function entityQuery($entity_type, $conjunction = 'AND') {
return static::$container
->get('entity.query')
->get($entity_type, $conjunction);
}