public function updateLastThreadCheckTime(Entity $entity) {
    $this->userData->set('private_message', $this->currentUser->id(), 'private_message_thread:' . $entity->id(), $this->time->getRequestTime());
  }
public function updateLastThreadCheckTime(Entity $entity) {
    $this->userData->set('private_message', $this->currentUser->id(), 'private_message_thread:' . $entity->id(), $this->time->getRequestTime());
  }
public function updateLastThreadCheckTime ( Entity $ entity ) { $ this -> userData -> set ( 'private_message' , $ this -> currentUser -> id ( ) , 'private_message_thread:' . $ entity -> id ( ) , $ this -> time -> getRequestTime ( ) ) ; }
Update the last time the thread was checked by the user.

@param \Drupal\Core\Entity\Entity $entity
The thread entity.
Update the last time the thread was checked by the user .