You are here

public function LockBackendInterface::lockMayBeAvailable in Service Container 7

Same name and namespace in other branches
  1. 7.2 lib/Drupal/Core/Lock/LockBackendInterface.php \Drupal\Core\Lock\LockBackendInterface::lockMayBeAvailable()

Checks if a lock is available for acquiring.

Parameters

string $name: Lock to acquire.

Return value

bool

1 call to LockBackendInterface::lockMayBeAvailable()
LockBackendAbstract::wait in lib/Drupal/Core/Lock/LockBackendAbstract.php
Implements Drupal\Core\Lock\LockBackedInterface::wait().
2 methods override LockBackendInterface::lockMayBeAvailable()
DatabaseLockBackend::lockMayBeAvailable in lib/Drupal/Core/Lock/DatabaseLockBackend.php
Implements Drupal\Core\Lock\LockBackedInterface::lockMayBeAvailable().
NullLockBackend::lockMayBeAvailable in lib/Drupal/Core/Lock/NullLockBackend.php
Implements Drupal\Core\Lock\LockBackedInterface::lockMayBeAvailable().

File

lib/Drupal/Core/Lock/LockBackendInterface.php, line 91
Contains \Drupal\Core\Lock\LockBackendInterface.

Class

LockBackendInterface
Lock backend interface.

Namespace

Drupal\Core\Lock

Code

public function lockMayBeAvailable($name);