entity.query

Class

Drupal\Core\Entity\Query\QueryFactory

File

core/core.services.yml

View source
  1. class: Drupal\Core\Entity\Query\QueryFactory
  2. arguments:
  3. - '@entity_type.manager'
  4. calls:
  5. - [setContainer, ['@service_container']]
  6. deprecated: 'The "%service_id%" service is deprecated. Use the ''entity_type.manager'' service to get an entity type''s storage object and then call \Drupal\Core\Entity\EntityStorageInterface::getQuery() or \Drupal\Core\Entity\EntityStorageInterface::getAggregateQuery() instead. See https://www.drupal.org/node/2849874'

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.