You are here

protected function MongodbLock::mongoId in MongoDB 8

Parameters

$name:

Return value

array

2 calls to MongodbLock::mongoId()
MongodbLock::acquire in src/MongodbLock.php
Acquires a lock.
MongodbLock::release in src/MongodbLock.php
Releases the given lock.

File

src/MongodbLock.php, line 93
Contains \Drupal\mongodb\MongodbLock.

Class

MongodbLock

Namespace

Drupal\mongodb

Code

protected function mongoId($name) {
  return [
    'name' => $name,
    'value' => $this
      ->getLockId(),
  ];
}