function StubLockBackendAbstract::lockMayBeAvailable
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Lock/StubLockBackendAbstract.php \Drupal\Tests\Core\Lock\StubLockBackendAbstract::lockMayBeAvailable()
Checks if a lock is available for acquiring.
Parameters
string $name: Lock to acquire.
Return value
bool TRUE if the lock can be acquired, FALSE otherwise.
Overrides LockBackendInterface::lockMayBeAvailable
File
-
core/
tests/ Drupal/ Tests/ Core/ Lock/ StubLockBackendAbstract.php, line 24
Class
- StubLockBackendAbstract
- A stub of the abstract LockBackendAbstract class for testing purposes.
Namespace
Drupal\Tests\Core\LockCode
public function lockMayBeAvailable($name) : bool {
throw new \LogicException(__METHOD__ . '() is not implemented.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.