PrivateMessageThreadManagerInterface.php in Private Message 8.2
Same filename and directory in other branches
Namespace
Drupal\private_message\ServiceFile
src/Service/PrivateMessageThreadManagerInterface.phpView source
<?php
namespace Drupal\private_message\Service;
use Drupal\private_message\Entity\PrivateMessageInterface;
use Drupal\private_message\Entity\PrivateMessageThreadInterface;
/**
* Handles the generation/update of private messages, threads, and metadata.
*
* @package Drupal\private_message\Service
*/
interface PrivateMessageThreadManagerInterface {
/**
* Saves a private message thread.
*
* A new thread will be created if one does not already exist.
*
* @param \Drupal\private_message\Entity\PrivateMessageInterface $message
* The new message object.
* @param array $recipients
* (optional) An array of message recipients. Defaults to an empty array.
* @param array $excludeFromMail
* (optional) An array of members to exclude from notification emails.
* Defaults to an empty array.
* @param \Drupal\private_message\Entity\PrivateMessageThreadInterface|null $thread
* (optional) The private message thread. If NULL, one will be loaded
* using the recipients array.
*/
public function saveThread(PrivateMessageInterface $message, array $recipients = [], array $excludeFromMail = [], PrivateMessageThreadInterface $thread = NULL);
}
Interfaces
Name | Description |
---|---|
PrivateMessageThreadManagerInterface | Handles the generation/update of private messages, threads, and metadata. |