You are here

protected function EmailHandler::buildPlainBody in Easy Email 8

Same name and namespace in other branches
  1. 2.0.x src/Service/EmailHandler.php \Drupal\easy_email\Service\EmailHandler::buildPlainBody()

Parameters

\Drupal\easy_email\Entity\EasyEmailInterface $email:

Return value

array

2 calls to EmailHandler::buildPlainBody()
EmailHandler::createUnsafeEmailsForRecipients in src/Service/EmailHandler.php
EmailHandler::generateEmailParams in src/Service/EmailHandler.php

File

src/Service/EmailHandler.php, line 439

Class

EmailHandler

Namespace

Drupal\easy_email\Service

Code

protected function buildPlainBody(EasyEmailInterface $email) {
  return [
    '#theme' => 'easy_email_body_plain',
    '#easy_email' => $email,
  ];
}