/**
  * Constructs a ContentEntityStorageBase object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager
  *   The entity manager.
  * @param \Drupal\Core\Cache\CacheBackendInterface $cache
  *   The cache backend to be used.
  */
 public function __construct(EntityTypeInterface $entity_type, EntityManagerInterface $entity_manager, CacheBackendInterface $cache)
 {
     parent::__construct($entity_type);
     $this->bundleKey = $this->entityType->getKey('bundle');
     $this->entityManager = $entity_manager;
     $this->cacheBackend = $cache;
 }
 /**
  * Constructs a EntityDatabaseStorage object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Database\Connection $database
  *   The database connection to be used.
  * @param \Drupal\Component\Uuid\UuidInterface $uuid_service
  *   The UUID service.
  */
 public function __construct(EntityTypeInterface $entity_type, Connection $database, UuidInterface $uuid_service)
 {
     parent::__construct($entity_type);
     $this->database = $database;
     $this->uuidService = $uuid_service;
     // Check if the entity type supports UUIDs.
     $this->uuidKey = $this->entityType->getKey('uuid');
 }
 /**
  * Constructs a new KeyValueEntityStorage.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type.
  * @param \Drupal\Core\KeyValueStore\KeyValueStoreInterface $key_value_store
  *   The key value store.
  * @param \Drupal\Component\Uuid\UuidInterface $uuid_service
  *   The UUID service.
  * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
  *   The language manager.
  */
 public function __construct(EntityTypeInterface $entity_type, KeyValueStoreInterface $key_value_store, UuidInterface $uuid_service, LanguageManagerInterface $language_manager)
 {
     parent::__construct($entity_type);
     $this->keyValueStore = $key_value_store;
     $this->uuidService = $uuid_service;
     $this->languageManager = $language_manager;
     // Check if the entity type supports UUIDs.
     $this->uuidKey = $this->entityType->getKey('uuid');
 }
 /**
  * Constructs a ConfigEntityStorage object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory
  *   The config factory service.
  * @param \Drupal\Component\Uuid\UuidInterface $uuid_service
  *   The UUID service.
  * @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
  *   The language manager.
  */
 public function __construct(EntityTypeInterface $entity_type, ConfigFactoryInterface $config_factory, UuidInterface $uuid_service, LanguageManagerInterface $language_manager)
 {
     parent::__construct($entity_type);
     $this->configFactory = $config_factory;
     $this->uuidService = $uuid_service;
     $this->languageManager = $language_manager;
 }
 /**
  * Constructs a ContentEntityStorageBase object.
  *
  * @param \Drupal\Core\Entity\EntityTypeInterface $entity_type
  *   The entity type definition.
  */
 public function __construct(EntityTypeInterface $entity_type)
 {
     parent::__construct($entity_type);
     $this->bundleKey = $this->entityType->getKey('bundle');
 }