You are here

function template_preprocess_mailgun in Mailgun 8

Prepares variables for mailgun templates.

Default template: mailgun.html.twig.

Parameters

array $variables: An associative array containing:

  • message: An associative array containing the message array.
  • body: The processed body.

File

./mailgun.module, line 62
Contains mailgun.module.

Code

function template_preprocess_mailgun(array &$variables) {
  $variables['subject'] = $variables['message']['subject'];
  $variables['body'] = $variables['message']['body'];
}