You are here

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

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\Mail
View source
class MandrillTestMail extends MandrillMail {

  /**
   * Constructor.
   */
  public function __construct() {
    parent::__construct();
    $this->mandrill = \Drupal::service('mandrill.test.service');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
MandrillMail::$config protected property The Config Factory service.
MandrillMail::$log protected property The Logger Factory service.
MandrillMail::$mandrill protected property The Mandrill service.
MandrillMail::$mimeTypeGuesser protected property The MIME Type Guesser service.
MandrillMail::format public function Concatenate and wrap the email body for either plain-text or HTML emails. Overrides MailInterface::format
MandrillMail::getAttachmentStruct public function Return an array structure for a message attachment.
MandrillMail::isValidContentType protected function Helper to determine if an attachment is valid.
MandrillMail::mail public function Send the email message. Overrides MailInterface::mail
MandrillTestMail::__construct public function Constructor. Overrides MandrillMail::__construct