public function MailTest::getFormat in Simplenews 8.2
Same name and namespace in other branches
- 8 src/Mail/MailTest.php \Drupal\simplenews\Mail\MailTest::getFormat()
- 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 52
Class
- MailTest
- Example mail implementation used for tests.
Namespace
Drupal\simplenews\MailCode
public function getFormat() {
return $this->format;
}