You are here

public function PrivateMessageService::updateThreadAccessTime in Private Message 8.2

Updates the last access time for the current user on the given thread.

Parameters

\Drupal\private_message\Entity\PrivateMessageThreadInterface $thread: The thread whose access time should be updated.

Overrides PrivateMessageServiceInterface::updateThreadAccessTime

File

src/Service/PrivateMessageService.php, line 317

Class

PrivateMessageService
The Private Message service for the private message module.

Namespace

Drupal\private_message\Service

Code

public function updateThreadAccessTime(PrivateMessageThreadInterface $thread) {
  $thread
    ->updateLastAccessTime($this->currentUser);
}