You are here

public function MailTest::getFormat in Simplenews 8

Same name and namespace in other branches
  1. 8.2 src/Mail/MailTest.php \Drupal\simplenews\Mail\MailTest::getFormat()
  2. 3.x src/Mail/MailTest.php \Drupal\simplenews\Mail\MailTest::getFormat()

Returns the mail format.

Return value

string The mail format as string, either 'plain' or 'html'.

Overrides MailInterface::getFormat

1 call to MailTest::getFormat()
MailTest::getBody in src/Mail/MailTest.php
Returns the mail body.

File

src/Mail/MailTest.php, line 32

Class

MailTest
Example mail implementation used for tests.

Namespace

Drupal\simplenews\Mail

Code

public function getFormat() {
  return $this->format;
}