public function DatabaseLockBackend::lockMayBeAvailable in Drupal 10
Same name in this branch
- 10 core/lib/Drupal/Core/Lock/DatabaseLockBackend.php \Drupal\Core\Lock\DatabaseLockBackend::lockMayBeAvailable()
- 10 core/lib/Drupal/Core/ProxyClass/Lock/DatabaseLockBackend.php \Drupal\Core\ProxyClass\Lock\DatabaseLockBackend::lockMayBeAvailable()
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/ProxyClass/Lock/DatabaseLockBackend.php \Drupal\Core\ProxyClass\Lock\DatabaseLockBackend::lockMayBeAvailable()
- 9 core/lib/Drupal/Core/ProxyClass/Lock/DatabaseLockBackend.php \Drupal\Core\ProxyClass\Lock\DatabaseLockBackend::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/ ProxyClass/ Lock/ DatabaseLockBackend.php, line 81
Class
- DatabaseLockBackend
- Provides a proxy class for \Drupal\Core\Lock\DatabaseLockBackend.
Namespace
Drupal\Core\ProxyClass\LockCode
public function lockMayBeAvailable($name) {
return $this
->lazyLoadItself()
->lockMayBeAvailable($name);
}