protected function EmailHandler::hasPlainBody in Easy Email 8
Same name and namespace in other branches
- 2.0.x src/Service/EmailHandler.php \Drupal\easy_email\Service\EmailHandler::hasPlainBody()
Parameters
\Drupal\easy_email\Entity\EasyEmailInterface $email:
Return value
bool
File
- src/
Service/ EmailHandler.php, line 384
Class
Namespace
Drupal\easy_email\ServiceCode
protected function hasPlainBody(EasyEmailInterface $email) {
return $email
->hasField('body_plain') && !empty($email
->getPlainBody());
}