protected function EmailHandler::shouldGeneratePlainBody in Easy Email 8
Same name and namespace in other branches
- 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
Namespace
Drupal\easy_email\ServiceCode
protected function shouldGeneratePlainBody(EasyEmailInterface $email) {
/** @var \Drupal\easy_email\Entity\EasyEmailTypeInterface $email_type */
$email_type = $this->emailTypeStorage
->load($email
->bundle());
return $email_type
->getGenerateBodyPlain();
}