You are here

public function PrivateMessageThreadManagerInterface::saveThread in Private Message 8.2

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

Saves a private message thread.

A new thread will be created if one does not already exist.

Parameters

\Drupal\private_message\Entity\PrivateMessageInterface $message: The new message object.

array $recipients: (optional) An array of message recipients. Defaults to an empty array.

array $excludeFromMail: (optional) An array of members to exclude from notification emails. Defaults to an empty array.

\Drupal\private_message\Entity\PrivateMessageThreadInterface|null $thread: (optional) The private message thread. If NULL, one will be loaded using the recipients array.

1 method overrides PrivateMessageThreadManagerInterface::saveThread()
PrivateMessageThreadManager::saveThread in src/Service/PrivateMessageThreadManager.php
Saves a private message thread.

File

src/Service/PrivateMessageThreadManagerInterface.php, line 31

Class

PrivateMessageThreadManagerInterface
Handles the generation/update of private messages, threads, and metadata.

Namespace

Drupal\private_message\Service

Code

public function saveThread(PrivateMessageInterface $message, array $recipients = [], array $excludeFromMail = [], PrivateMessageThreadInterface $thread = NULL);