You are here

protected function EmailHandler::hasInboxPreview in Easy Email 8

Same name and namespace in other branches
  1. 2.0.x 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 393

Class

EmailHandler

Namespace

Drupal\easy_email\Service

Code

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