public function PrivateMessageMapperInterface::getUpdatedInboxThreadIds in Private Message 8
Same name and namespace in other branches
- 8.2 src/Mapper/PrivateMessageMapperInterface.php \Drupal\private_message\Mapper\PrivateMessageMapperInterface::getUpdatedInboxThreadIds()
Retrieve a list of recently updated private message thread IDs.
The last updated timestamp will also be returned. If any ids are provided in $existingThreadIds, the IDs of all threads that have been updated since the oldest updated timestamp for the given thread IDs will be returned. Otherwise the number of IDs returned will be the number provided for $count.
Parameters
array $existingThreadIds: An array of thread IDs to be compared against.
int $count: The number of threads to return if no existing thread IDs were provided.
Return value
array An array, keyed by thread ID, with each element of the array containing an object with the following two properties:
- id: The thread ID
- updated: The timestamp at which the thread was last updated
1 method overrides PrivateMessageMapperInterface::getUpdatedInboxThreadIds()
- PrivateMessageMapper::getUpdatedInboxThreadIds in src/
Mapper/ PrivateMessageMapper.php - Retrieve a list of recently updated private message thread IDs.
File
- src/
Mapper/ PrivateMessageMapperInterface.php, line 108
Class
- PrivateMessageMapperInterface
- Interface for the Private Message Thread mapper class.
Namespace
Drupal\private_message\MapperCode
public function getUpdatedInboxThreadIds(array $existingThreadIds, $count = FALSE);