function LockBackendInterface::getLockId

Same name in other branches
  1. 9 core/lib/Drupal/Core/Lock/LockBackendInterface.php \Drupal\Core\Lock\LockBackendInterface::getLockId()
  2. 8.9.x core/lib/Drupal/Core/Lock/LockBackendInterface.php \Drupal\Core\Lock\LockBackendInterface::getLockId()
  3. 10 core/lib/Drupal/Core/Lock/LockBackendInterface.php \Drupal\Core\Lock\LockBackendInterface::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

4 methods override LockBackendInterface::getLockId()
DatabaseLockBackend::getLockId in core/lib/Drupal/Core/ProxyClass/Lock/DatabaseLockBackend.php
Gets the unique page token for locks.
LockBackendAbstract::getLockId in core/lib/Drupal/Core/Lock/LockBackendAbstract.php
Gets the unique page token for locks.
NullLockBackend::getLockId in core/lib/Drupal/Core/Lock/NullLockBackend.php
Gets the unique page token for locks.
PersistentDatabaseLockBackend::getLockId in core/lib/Drupal/Core/ProxyClass/Lock/PersistentDatabaseLockBackend.php
Gets the unique page token for locks.

File

core/lib/Drupal/Core/Lock/LockBackendInterface.php, line 150

Class

LockBackendInterface
Lock backend interface.

Namespace

Drupal\Core\Lock

Code

public function getLockId();

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