public function PrivateMessageThreadInterface::filterUserDeletedMessages in Private Message 8
Same name and namespace in other branches
- 8.2 src/Entity/PrivateMessageThreadInterface.php \Drupal\private_message\Entity\PrivateMessageThreadInterface::filterUserDeletedMessages()
Filter messages in the thread deleted by the given account.
Only messages created after the last time the user deleted the thread will be shown. If they have never deleted the thread, all messages are returned.
Parameters
\Drupal\Core\Session\AccountInterface $account: The user for whom private messages should be returned.
Return value
Drupal\private_message\Entity\PrivateMessage[] An array of private messages
1 method overrides PrivateMessageThreadInterface::filterUserDeletedMessages()
- PrivateMessageThread::filterUserDeletedMessages in src/
Entity/ PrivateMessageThread.php - Filter messages in the thread deleted by the given account.
File
- src/
Entity/ PrivateMessageThreadInterface.php, line 221
Class
- PrivateMessageThreadInterface
- Provides an interface defining a Private Message thread entity.
Namespace
Drupal\private_message\EntityCode
public function filterUserDeletedMessages(AccountInterface $account);