class MandrillTestMail in Mandrill 8
Mandrill test mail plugin.
Plugin annotation
@Mail(
id = "mandrill_test_mail",
label = @Translation("Mandrill test mailer"),
description = @Translation("Sends test messages through Mandrill.")
)
Hierarchy
- class \Drupal\mandrill\Plugin\Mail\MandrillMail implements MailInterface
- class \Drupal\mandrill\Plugin\Mail\MandrillTestMail
Expanded class hierarchy of MandrillTestMail
2 files declare their use of MandrillTestMail
- MandrillAdminTestForm.php in src/
Form/ MandrillAdminTestForm.php - MandrillTestCase.php in tests/
src/ Functional/ MandrillTestCase.php - Contains \Drupal\mandrill\Tests\MandrillTestCase.
File
- src/
Plugin/ Mail/ MandrillTestMail.php, line 14
Namespace
Drupal\mandrill\Plugin\MailView source
class MandrillTestMail extends MandrillMail {
/**
* Constructor.
*/
public function __construct() {
parent::__construct();
$this->mandrill = \Drupal::service('mandrill.test.service');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MandrillMail:: |
protected | property | The Config Factory service. | |
MandrillMail:: |
protected | property | The Logger Factory service. | |
MandrillMail:: |
protected | property | The Mandrill service. | |
MandrillMail:: |
protected | property | The MIME Type Guesser service. | |
MandrillMail:: |
public | function |
Concatenate and wrap the email body for either plain-text or HTML emails. Overrides MailInterface:: |
|
MandrillMail:: |
public | function | Return an array structure for a message attachment. | |
MandrillMail:: |
protected | function | Helper to determine if an attachment is valid. | |
MandrillMail:: |
public | function |
Send the email message. Overrides MailInterface:: |
|
MandrillTestMail:: |
public | function |
Constructor. Overrides MandrillMail:: |