diff --git a/src/ExternalEntityStorage.php b/src/ExternalEntityStorage.php index 9d773f4..819b82d 100755 --- a/src/ExternalEntityStorage.php +++ b/src/ExternalEntityStorage.php @@ -14,6 +14,7 @@ use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\ContentEntityInterface; use Drupal\Core\Cache\Cache; use Drupal\Core\Field\FieldDefinitionInterface; +use Drupal\Core\Cache\MemoryCache\MemoryCacheInterface; /** * Defines the storage handler class for external entities. @@ -52,6 +53,7 @@ class ExternalEntityStorage extends ContentEntityStorageBase implements External $entity_type, $container->get('entity.manager'), $container->get('cache.entity'), + $container->get('entity.memory_cache'), $container->get('plugin.manager.external_entities.storage_client'), $container->get('datetime.time') ); @@ -66,13 +68,15 @@ class ExternalEntityStorage extends ContentEntityStorageBase implements External * The entity manager. * @param \Drupal\Core\Cache\CacheBackendInterface $cache * The cache backend to be used. + * @param \Drupal\Core\Cache\MemoryCache\MemoryCacheInterface $memory_cache + * The memory cache backend. * @param \Drupal\Component\Plugin\PluginManagerInterface $storage_client_manager * The storage client manager. * @param \Drupal\Component\Datetime\TimeInterface $time * The time service. */ - public function __construct(EntityTypeInterface $entity_type, EntityManagerInterface $entity_manager, CacheBackendInterface $cache, PluginManagerInterface $storage_client_manager, TimeInterface $time) { - parent::__construct($entity_type, $entity_manager, $cache); + public function __construct(EntityTypeInterface $entity_type, EntityManagerInterface $entity_manager, CacheBackendInterface $cache, MemoryCacheInterface $memory_cache, PluginManagerInterface $storage_client_manager, TimeInterface $time) { + parent::__construct($entity_type, $entity_manager, $cache, $memory_cache); $this->storageClientManager = $storage_client_manager; $this->time = $time; }