You are here

public function NullLockBackend::lockMayBeAvailable in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Lock/NullLockBackend.php \Drupal\Core\Lock\NullLockBackend::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/Lock/NullLockBackend.php, line 32

Class

NullLockBackend
Defines a Null lock backend.

Namespace

Drupal\Core\Lock

Code

public function lockMayBeAvailable($name) {
  return TRUE;
}