public function NullLockBackend::getLockId in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Lock/NullLockBackend.php \Drupal\Core\Lock\NullLockBackend::getLockId()
Gets the unique page token for locks.
Locks will be wiped out at the end of each page request on a token basis.
Return value
string
Overrides LockBackendInterface::getLockId
File
- core/
lib/ Drupal/ Core/ Lock/ NullLockBackend.php, line 54
Class
- NullLockBackend
- Defines a Null lock backend.
Namespace
Drupal\Core\LockCode
public function getLockId() {
if (!isset($this->lockId)) {
$this->lockId = uniqid(mt_rand(), TRUE);
}
return $this->lockId;
}