You are here

public function Email::getBody in Courier 2.x

Same name and namespace in other branches
  1. 8 src/Entity/Email.php \Drupal\courier\Entity\Email::getBody()

Returns the email body.

Return value

string Body of the email.

Overrides EmailInterface::getBody

3 calls to Email::getBody()
Email::applyTokens in src/Entity/Email.php
Applies tokens to relevant fields.
Email::exportTemplate in src/Entity/Email.php
Export the message values from this template to configuration values.
Email::isEmpty in src/Entity/Email.php
Determine if there is enough data to transmit a message.

File

src/Entity/Email.php, line 89

Class

Email
Defines storage for a composed email.

Namespace

Drupal\courier\Entity

Code

public function getBody() {
  return $this
    ->get('body')->value;
}