public function NullLockBackend::lockMayBeAvailable in Drupal 8
Same name and namespace in other branches
- 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\LockCode
public function lockMayBeAvailable($name) {
return TRUE;
}