You are here

public function LockBackendInterface::lockMayBeAvailable in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Lock/LockBackendInterface.php \Drupal\Core\Lock\LockBackendInterface::lockMayBeAvailable()
  2. 9 core/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

2 methods override LockBackendInterface::lockMayBeAvailable()
DatabaseLockBackend::lockMayBeAvailable in core/lib/Drupal/Core/ProxyClass/Lock/DatabaseLockBackend.php
Checks if a lock is available for acquiring.
PersistentDatabaseLockBackend::lockMayBeAvailable in core/lib/Drupal/Core/ProxyClass/Lock/PersistentDatabaseLockBackend.php
Checks if a lock is available for acquiring.

File

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

Class

LockBackendInterface
Lock backend interface.

Namespace

Drupal\Core\Lock

Code

public function lockMayBeAvailable($name);