diff --git a/core/lib/Drupal/Core/Entity/EntityStorageBase.php b/core/lib/Drupal/Core/Entity/EntityStorageBase.php index d4d353d..5251745 100644 --- a/core/lib/Drupal/Core/Entity/EntityStorageBase.php +++ b/core/lib/Drupal/Core/Entity/EntityStorageBase.php @@ -3,7 +3,6 @@ namespace Drupal\Core\Entity; use Drupal\Core\Entity\Query\QueryInterface; -use Drupal\Core\Cache\Cache; use Drupal\Core\Cache\StaticCache\StaticCacheInterface; /** @@ -174,7 +173,7 @@ protected function getFromStaticCache(array $ids) { protected function setStaticCache(array $entities) { if ($this->entityType->isStaticallyCacheable()) { foreach ($entities as $id => $entity) { - $this->staticCache->set($this->getCacheId($entity->id()), $entity, Cache::CACHE_PERMANENT, ['entity_static_cache']); + $this->staticCache->set($this->getCacheId($entity->id()), $entity, StaticCacheInterface::CACHE_PERMANENT, ['entity_static_cache']); } } }