function PersistentDatabaseLockBackend::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/ProxyClass/Lock/PersistentDatabaseLockBackend.php, line 121

Class

PersistentDatabaseLockBackend
Provides a proxy class for \Drupal\Core\Lock\PersistentDatabaseLockBackend.

Namespace

Drupal\Core\ProxyClass\Lock

Code

public function getLockId() {
  return $this->lazyLoadItself()
    ->getLockId();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.