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