MailBuilderInterface.php in Simplenews 8.2
Same filename and directory in other branches
Namespace
Drupal\simplenews\MailFile
src/Mail/MailBuilderInterface.phpView source
<?php
namespace Drupal\simplenews\Mail;
/**
* Builds newsletter and confirmation mails.
*/
interface MailBuilderInterface {
/**
* Build subject and body of the test and normal newsletter email.
*
* @param array $message
* Message array as used by hook_mail().
* @param \Drupal\simplenews\Mail\MailInterface $mail
* The mail object.
*/
public function buildNewsletterMail(array &$message, MailInterface $mail);
/**
* Build subject and body of the subscribe confirmation email.
*
* @param array $message
* Message array as used by hook_mail().
* @param array $params
* Parameter array as used by hook_mail().
*/
public function buildSubscribeMail(array &$message, array $params);
/**
* Build subject and body of the subscribe confirmation email.
*
* @param array $message
* Message array as used by hook_mail().
* @param array $params
* Parameter array as used by hook_mail().
*/
public function buildCombinedMail(array &$message, array $params);
/**
* Build subject and body of the unsubscribe confirmation email.
*
* @param array $message
* Message array as used by hook_mail().
* @param array $params
* Parameter array as used by hook_mail().
*/
public function buildUnsubscribeMail(array &$message, array $params);
}
Interfaces
Name![]() |
Description |
---|---|
MailBuilderInterface | Builds newsletter and confirmation mails. |