public function LockBackendAbstract::getLockId in Service Container 7
Same name and namespace in other branches
- 7.2 lib/Drupal/Core/Lock/LockBackendAbstract.php \Drupal\Core\Lock\LockBackendAbstract::getLockId()
Implements Drupal\Core\Lock\LockBackedInterface::getLockId().
Overrides LockBackendInterface::getLockId
1 call to LockBackendAbstract::getLockId()
- DatabaseLockBackend::releaseAll in lib/
Drupal/ Core/ Lock/ DatabaseLockBackend.php - Implements Drupal\Core\Lock\LockBackedInterface::releaseAll().
File
- lib/
Drupal/ Core/ Lock/ LockBackendAbstract.php, line 73 - Contains \Drupal\Core\Lock\LockBackendAbstract.
Class
- LockBackendAbstract
- Non backend related common methods implementation for lock backends.
Namespace
Drupal\Core\LockCode
public function getLockId() {
if (!isset($this->lockId)) {
$this->lockId = uniqid(mt_rand(), TRUE);
}
return $this->lockId;
}