You are here

public function MailTest::getFormat in Simplenews 3.x

Same name and namespace in other branches
  1. 8.2 src/Mail/MailTest.php \Drupal\simplenews\Mail\MailTest::getFormat()
  2. 8 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 52

Class

MailTest
Example mail implementation used for tests.

Namespace

Drupal\simplenews\Mail

Code

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