Implements Drupal\Core\Lock\LockBackedInterface::getLockId().
Overrides LockBackendInterface::getLockId
File
- drupal/core/lib/Drupal/Core/Lock/LockBackendAbstract.php, line 71
- Definition of Drupal\Core\Lock\LockBackendAbstract.
Class
- LockBackendAbstract
- Non backend related common methods implementation for lock backends.
Namespace
Drupal\Core\Lock
Code
public function getLockId() {
if (!isset($this->lockId)) {
$this->lockId = uniqid(mt_rand(), TRUE);
}
return $this->lockId;
}