You are here

public function Email::getBody in Courier 8

Same name and namespace in other branches
  1. 2.x 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, as found in the 'courier.template.TYPE' config type. Where TYPE is the entity type ID of this entity.
Email::isEmpty in src/Entity/Email.php
Determine if there is enough data to transmit a message.

File

src/Entity/Email.php, line 94
Contains \Drupal\courier\Entity\Email.

Class

Email
Defines storage for a composed email.

Namespace

Drupal\courier\Entity

Code

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