You are here

protected function EmailHandler::shouldGeneratePlainBody in Easy Email 8

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

Parameters

\Drupal\easy_email\Entity\EasyEmailInterface $email:

Return value

bool

1 call to EmailHandler::shouldGeneratePlainBody()
EmailHandler::generateEmailParams in src/Service/EmailHandler.php

File

src/Service/EmailHandler.php, line 451

Class

EmailHandler

Namespace

Drupal\easy_email\Service

Code

protected function shouldGeneratePlainBody(EasyEmailInterface $email) {

  /** @var \Drupal\easy_email\Entity\EasyEmailTypeInterface $email_type */
  $email_type = $this->emailTypeStorage
    ->load($email
    ->bundle());
  return $email_type
    ->getGenerateBodyPlain();
}