NullLockBackend::lockMayBeAvailable

public NullLockBackend::lockMayBeAvailable($name)

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;
}
doc_Drupal
2016-10-29 09:32:11
Comments
Leave a Comment

Please login to continue.