public function ContentLock::releaseAllUserLocks in Content locking (anti-concurrent editing) 8.2
Same name and namespace in other branches
- 8 src/ContentLock/ContentLock.php \Drupal\content_lock\ContentLock\ContentLock::releaseAllUserLocks()
Release all locks set by a user.
Parameters
int $uid: The user uid.
File
- src/
ContentLock/ ContentLock.php, line 280
Class
- ContentLock
- Class ContentLock.
Namespace
Drupal\content_lock\ContentLockCode
public function releaseAllUserLocks($uid) {
$this->database
->delete('content_lock')
->condition('uid', $uid)
->execute();
}