You are here

function template_preprocess_easy_email_body_inbox_preview in Easy Email 8

Same name and namespace in other branches
  1. 2.0.x easy_email.module \template_preprocess_easy_email_body_inbox_preview()

File

./easy_email.module, line 169
Contains easy_email.module.

Code

function template_preprocess_easy_email_body_inbox_preview(array &$variables) {

  /** @var \Drupal\easy_email\Entity\EasyEmailInterface $email */
  $email = $variables['easy_email'];
  $inbox_preview = $email
    ->getInboxPreview();
  $variables['body'] = [
    '#markup' => Xss::filter($inbox_preview, []),
  ];
}