You are here

public function MailEntity::getPlainBody in Simplenews 3.x

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

Returns the plaintext body.

Return value

string The body as plain text.

Overrides MailInterface::getPlainBody

File

src/Mail/MailEntity.php, line 349

Class

MailEntity
Default mail class for entities.

Namespace

Drupal\simplenews\Mail

Code

public function getPlainBody() {
  return $this
    ->getBodyWithFormat('plain');
}