You are here

function MailInterface::getBody in Simplenews 8

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

Returns the mail body.

Return value

string The body, as plaintext or html depending on the format.

2 methods override MailInterface::getBody()
MailEntity::getBody in src/Mail/MailEntity.php
Returns the mail body.
MailTest::getBody in src/Mail/MailTest.php
Returns the mail body.

File

src/Mail/MailInterface.php, line 51

Class

MailInterface
A newsletter mail.

Namespace

Drupal\simplenews\Mail

Code

function getBody();