You are here

public function PersistentDatabaseLockBackend::lockMayBeAvailable in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/ProxyClass/Lock/PersistentDatabaseLockBackend.php \Drupal\Core\ProxyClass\Lock\PersistentDatabaseLockBackend::lockMayBeAvailable()
  2. 10 core/lib/Drupal/Core/ProxyClass/Lock/PersistentDatabaseLockBackend.php \Drupal\Core\ProxyClass\Lock\PersistentDatabaseLockBackend::lockMayBeAvailable()

Checks if a lock is available for acquiring.

Parameters

string $name: Lock to acquire.

Return value

bool

Overrides LockBackendInterface::lockMayBeAvailable

File

core/lib/Drupal/Core/ProxyClass/Lock/PersistentDatabaseLockBackend.php, line 81

Class

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

Namespace

Drupal\Core\ProxyClass\Lock

Code

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