interface MailBuilderInterface in Simplenews 3.x
Same name and namespace in other branches
- 8.2 src/Mail/MailBuilderInterface.php \Drupal\simplenews\Mail\MailBuilderInterface
- 8 src/Mail/MailBuilderInterface.php \Drupal\simplenews\Mail\MailBuilderInterface
Builds newsletter and confirmation mails.
Hierarchy
- interface \Drupal\simplenews\Mail\MailBuilderInterface
Expanded class hierarchy of MailBuilderInterface
All classes that implement MailBuilderInterface
File
- src/
Mail/ MailBuilderInterface.php, line 8
Namespace
Drupal\simplenews\MailView source
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 buildCombinedMail(array &$message, array $params);
/**
* Build subject and body of the validate email.
*
* @param array $message
* Message array as used by hook_mail().
* @param array $params
* Parameter array as used by hook_mail().
*/
public function buildValidateMail(array &$message, array $params);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MailBuilderInterface:: |
public | function | Build subject and body of the subscribe confirmation email. | 1 |
MailBuilderInterface:: |
public | function | Build subject and body of the test and normal newsletter email. | 1 |
MailBuilderInterface:: |
public | function | Build subject and body of the validate email. | 1 |