You are here

public function ContentEntityStorage::__construct in MongoDB 8

Constructs a DatabaseStorageController object.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $entity_type: The entity type definition.

\Drupal\Core\Database\Connection $database: The database connection to be used.

Overrides ContentEntityStorageBase::__construct

File

src/Entity/ContentEntityStorage.php, line 43
Contains Drupal\mongodb\Entity\ContentEntityStorage.

Class

ContentEntityStorage

Namespace

Drupal\mongodb\Entity

Code

public function __construct(EntityTypeInterface $entity_type, MongoCollectionFactory $mongo, EntityManagerInterface $entity_manager) {
  parent::__construct($entity_type);
  $this->mongo = $mongo;
  $this->entityManager = $entity_manager;
}