protected function ContentEntityStorage::mongoCollection in MongoDB 8
Parameters
EntityInterface $entity:
Return value
\MongoCollection
1 call to ContentEntityStorage::mongoCollection()
- ContentEntityStorage::doSave in src/
Entity/ ContentEntityStorage.php - Performs storage-specific saving of the entity.
File
- src/
Entity/ ContentEntityStorage.php, line 409 - Contains Drupal\mongodb\Entity\ContentEntityStorage.
Class
Namespace
Drupal\mongodb\EntityCode
protected function mongoCollection(ContentEntityInterface $entity, $prefix) {
return $this->mongo
->get($prefix . '.' . $this->entityTypeId);
}