public function MailEntity::getBody in Simplenews 8
Same name and namespace in other branches
- 8.2 src/Mail/MailEntity.php \Drupal\simplenews\Mail\MailEntity::getBody()
- 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 359
Class
- MailEntity
- Default mail class for entities.
Namespace
Drupal\simplenews\MailCode
public function getBody() {
return $this
->getBodyWithFormat($this
->getFormat());
}