You are here

protected function EmailHandler::hasInboxPreview in Easy Email 2.0.x

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

Parameters

\Drupal\easy_email\Entity\EasyEmailInterface $email:

Return value

bool

1 call to EmailHandler::hasInboxPreview()
EmailHandler::buildHtmlBody in src/Service/EmailHandler.php

File

src/Service/EmailHandler.php, line 394

Class

EmailHandler

Namespace

Drupal\easy_email\Service

Code

protected function hasInboxPreview(EasyEmailInterface $email) {
  return $email
    ->hasField('inbox_preview') && !empty($email
    ->getInboxPreview());
}