protected function EmailHandler::shouldGeneratePlainBody in Easy Email 2.0.x
Same name and namespace in other branches
- 8 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 452
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();
}