public function DatabaseLockBackend::release in Zircon Profile 8
Same name in this branch
- 8 core/lib/Drupal/Core/Lock/DatabaseLockBackend.php \Drupal\Core\Lock\DatabaseLockBackend::release()
- 8 core/lib/Drupal/Core/ProxyClass/Lock/DatabaseLockBackend.php \Drupal\Core\ProxyClass\Lock\DatabaseLockBackend::release()
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Lock/DatabaseLockBackend.php \Drupal\Core\Lock\DatabaseLockBackend::release()
Releases the given lock.
Parameters
string $name:
Overrides LockBackendInterface::release
File
- core/
lib/ Drupal/ Core/ Lock/ DatabaseLockBackend.php, line 120 - Contains \Drupal\Core\Lock\DatabaseLockBackend.
Class
- DatabaseLockBackend
- Defines the database lock backend. This is the default backend in Drupal.
Namespace
Drupal\Core\LockCode
public function release($name) {
unset($this->locks[$name]);
$this->database
->delete('semaphore')
->condition('name', $name)
->condition('value', $this
->getLockId())
->execute();
}