public function MailEntity::getPlainBody in Simplenews 8.2
Same name and namespace in other branches
- 8 src/Mail/MailEntity.php \Drupal\simplenews\Mail\MailEntity::getPlainBody()
- 3.x 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\MailCode
public function getPlainBody() {
return $this
->getBodyWithFormat('plain');
}