Comment::releaseThreadLock

protected Comment::releaseThreadLock()

Release the lock acquired for the thread in preSave().

File

core/modules/comment/src/Entity/Comment.php, line 166

Class

Comment
Defines the comment entity class.

Namespace

Drupal\comment\Entity

Code

1
2
3
4
5
6
protected function releaseThreadLock() {
  if ($this->threadLock) {
    \Drupal::lock()->release($this->threadLock);
    $this->threadLock = '';
  }
}
doc_Drupal
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.