You are here

public function PrivateMessageMapperInterface::getFirstThreadIdForUser in Private Message 8.2

Same name and namespace in other branches
  1. 8 src/Mapper/PrivateMessageMapperInterface.php \Drupal\private_message\Mapper\PrivateMessageMapperInterface::getFirstThreadIdForUser()

Retrieve the ID of the most recently updated thread for the given user.

Parameters

\Drupal\user\UserInterface $user: The user whose most recently updated thread should be retrieved.

Return value

int|bool The ID of the most recently updated thread the user is a member of if one exists, or FALSE if one doesn't.

1 method overrides PrivateMessageMapperInterface::getFirstThreadIdForUser()
PrivateMessageMapper::getFirstThreadIdForUser in src/Mapper/PrivateMessageMapper.php
Retrieve the ID of the most recently updated thread for the given user.

File

src/Mapper/PrivateMessageMapperInterface.php, line 39

Class

PrivateMessageMapperInterface
Interface for the Private Message Thread mapper class.

Namespace

Drupal\private_message\Mapper

Code

public function getFirstThreadIdForUser(UserInterface $user);