You are here

PrivateMessageMailerInterface.php in Private Message 8

File

src/Service/PrivateMessageMailerInterface.php
View source
<?php

namespace Drupal\private_message\Service;

use Drupal\private_message\Entity\PrivateMessageInterface;
use Drupal\private_message\Entity\PrivateMessageThreadInterface;

/**
 * Interface for the Private Message mail service.
 */
interface PrivateMessageMailerInterface {

  /**
   * Send a private message notification email.
   *
   * @param \Drupal\private_message\Entity\PrivateMessageInterface $message
   *   The message.
   * @param \Drupal\private_message\Entity\PrivateMessageThreadInterface $thread
   *   The message thread.
   * @param \Drupal\user\UserInterface[] $members
   *   The message members.
   */
  public function send(PrivateMessageInterface $message, PrivateMessageThreadInterface $thread, array $members = []);

}

Interfaces

Namesort descending Description
PrivateMessageMailerInterface Interface for the Private Message mail service.