Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. NullLockBackend.php

function NullLockBackend::getLockId

Overrides LockBackendInterface::getLockId

File

core/lib/Drupal/Core/Lock/NullLockBackend.php, line 54

Class

NullLockBackend
Defines a Null lock backend.

Namespace

Drupal\Core\Lock

Code

public function getLockId() {
    if (!isset($this->lockId)) {
        $this->lockId = uniqid((string) mt_rand(), TRUE);
    }
    return $this->lockId;
}
RSS feed
Powered by Drupal