You are here

protected function ContentEntityStorage::nextId in MongoDB 8

Parameters

$prefix:

Return value

int

1 call to ContentEntityStorage::nextId()
ContentEntityStorage::doSave in src/Entity/ContentEntityStorage.php
Performs storage-specific saving of the entity.

File

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

Class

ContentEntityStorage

Namespace

Drupal\mongodb\Entity

Code

protected function nextId($prefix, $existing_id = 0) {
  return $this->mongo
    ->nextId("{$prefix}.{$this->entityTypeId}", (int) $existing_id);
}