You are here

public function PrivateMessageServiceInterface::getThreadFromMessage in Private Message 8.2

Same name and namespace in other branches
  1. 8 src/Service/PrivateMessageServiceInterface.php \Drupal\private_message\Service\PrivateMessageServiceInterface::getThreadFromMessage()

Load the thread that a private message belongs to.

Parameters

\Drupal\private_message\Entity\PrivateMessageInterface $privateMessage: The private message for which the thread it belongs to should be returned.

Return value

\Drupal\private_message\Entity\PrivateMessageThread The private message thread to which the private message belongs

1 method overrides PrivateMessageServiceInterface::getThreadFromMessage()
PrivateMessageService::getThreadFromMessage in src/Service/PrivateMessageService.php
Load the thread that a private message belongs to.

File

src/Service/PrivateMessageServiceInterface.php, line 196

Class

PrivateMessageServiceInterface
The interface for the Private Message Service.

Namespace

Drupal\private_message\Service

Code

public function getThreadFromMessage(PrivateMessageInterface $privateMessage);