public function LockBackendInterface::lockMayBeAvailable in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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
1 call to LockBackendInterface::lockMayBeAvailable()
- LockBackendAbstract::wait in core/
lib/ Drupal/ Core/ Lock/ LockBackendAbstract.php - Waits a short amount of time before a second lock acquire attempt.
5 methods override LockBackendInterface::lockMayBeAvailable()
- DatabaseLockBackend::lockMayBeAvailable in core/
lib/ Drupal/ Core/ ProxyClass/ Lock/ DatabaseLockBackend.php - Checks if a lock is available for acquiring.
- DatabaseLockBackend::lockMayBeAvailable in core/
lib/ Drupal/ Core/ Lock/ DatabaseLockBackend.php - Checks if a lock is available for acquiring.
- MemcacheLockBackend::lockMayBeAvailable in modules/
memcache/ src/ MemcacheLockBackend.php - Checks if a lock is available for acquiring.
- NullLockBackend::lockMayBeAvailable in core/
lib/ Drupal/ Core/ Lock/ NullLockBackend.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 91 - Contains \Drupal\Core\Lock\LockBackendInterface.
Class
- LockBackendInterface
- Lock backend interface.
Namespace
Drupal\Core\LockCode
public function lockMayBeAvailable($name);