You are here

public function MailEntity::getBody in Simplenews 8.2

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

Returns the mail body.

Return value

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

Overrides MailInterface::getBody

File

src/Mail/MailEntity.php, line 342

Class

MailEntity
Default mail class for entities.

Namespace

Drupal\simplenews\Mail

Code

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