# @deprecated in Drupal 8.0.x and will be removed before 9.0.0. Use the other
# entity* services instead.
entity.manager:
class:Drupal\Core\Entity\EntityManager
parent:container.trait
deprecated:The "%service_id%" service is deprecated. You should use the 'entity_type.manager' service instead.
entity.memory_cache:
class:Drupal\Core\Cache\MemoryCache\MemoryCache
entity_type.manager:
@@ -918,12 +912,6 @@ services:
arguments:['@state']
tags:
-{name:event_subscriber}
entity.query:
class:Drupal\Core\Entity\Query\QueryFactory
arguments:['@entity_type.manager']
calls:
-[setContainer,['@service_container']]
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
* @deprecated in drupal:8.0.0 and is removed from drupal:9.0.0.
* Use \Drupal::entityTypeManager() instead in most cases. If the needed
* method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see the
* deprecated \Drupal\Core\Entity\EntityManager to find the
* correct interface or service.
*/
publicstaticfunctionentityManager(){
@trigger_error("\Drupal::entityManager() is deprecated in Drupal 8.0.0 and will be removed before Drupal 9.0.0. Use \Drupal::entityTypeManager() instead in most cases. If the needed method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see the deprecated \Drupal\Core\Entity\EntityManager to find the correct interface or service. See https://www.drupal.org/node/2549139",E_USER_DEPRECATED);