You are here

public function MailTest::getPlainBody in Simplenews 8

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

Returns the plaintext body.

Return value

string The body as plain text.

Overrides MailInterface::getPlainBody

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

File

src/Mail/MailTest.php, line 60

Class

MailTest
Example mail implementation used for tests.

Namespace

Drupal\simplenews\Mail

Code

public function getPlainBody() {
  return 'the plain body';
}