public function PrivateMessageServiceInterface::getThreadForMembers in Private Message 8.2
Same name and namespace in other branches
- 8 src/Service/PrivateMessageServiceInterface.php \Drupal\private_message\Service\PrivateMessageServiceInterface::getThreadForMembers()
Retrieves the private message thread for the given members.
If no thread exists, one will be created.
Parameters
\Drupal\user\UserInterface[] $members: An array of User objects for whom the private message thread should be retrieved.
Return value
\Drupal\private_message\Entity\PrivateMessageThread A private message thread that contains all members in the thread.
1 method overrides PrivateMessageServiceInterface::getThreadForMembers()
- PrivateMessageService::getThreadForMembers in src/
Service/ PrivateMessageService.php - Retrieves the private message thread for the given members.
File
- src/
Service/ PrivateMessageServiceInterface.php, line 38
Class
- PrivateMessageServiceInterface
- The interface for the Private Message Service.
Namespace
Drupal\private_message\ServiceCode
public function getThreadForMembers(array $members);