public function PrivateMessageServiceInterface::getThreadsForUser in Private Message 8.2
Same name and namespace in other branches
- 8 src/Service/PrivateMessageServiceInterface.php \Drupal\private_message\Service\PrivateMessageServiceInterface::getThreadsForUser()
Retrieve private message threads for a given user.
Parameters
int $count: The number of threads to retrieve.
int $timestamp: A timestamp relative to which only threads with an earlier timestamp should be returned.
Return value
array An array with two keys:
- threads: an array of \Drupal\private_message\Entity\PrivateMessageThread
- next_exists: a boolean indicating whether any more private message threads exist after the last one
1 method overrides PrivateMessageServiceInterface::getThreadsForUser()
- PrivateMessageService::getThreadsForUser in src/
Service/ PrivateMessageService.php - Retrieve private message threads for a given user.
File
- src/
Service/ PrivateMessageServiceInterface.php, line 64
Class
- PrivateMessageServiceInterface
- The interface for the Private Message Service.
Namespace
Drupal\private_message\ServiceCode
public function getThreadsForUser($count, $timestamp = FALSE);