public function PrivateMessageServiceInterface::getPreviousMessages in Private Message 8.2
Same name and namespace in other branches
- 8 src/Service/PrivateMessageServiceInterface.php \Drupal\private_message\Service\PrivateMessageServiceInterface::getPreviousMessages()
Retrieve old messages for a user that were created before the given ID.
Parameters
int $threadId: The ID of the thread from which messages should be retrieved.
int $messageId: The ID before which messages should be retrieved.
Return value
array An array containing the following to keys:
- messages: an array of \Drupal\private_message\Entity\PrivateMessage
- next_exists: a boolean indicating whether or not any messages appear in the thread before the first message returned
1 method overrides PrivateMessageServiceInterface::getPreviousMessages()
- PrivateMessageService::getPreviousMessages in src/
Service/ PrivateMessageService.php - Retrieve old messages for a user that were created before the given ID.
File
- src/
Service/ PrivateMessageServiceInterface.php, line 101
Class
- PrivateMessageServiceInterface
- The interface for the Private Message Service.
Namespace
Drupal\private_message\ServiceCode
public function getPreviousMessages($threadId, $messageId);