You are here

function mailgun_theme_suggestions_mailgun in Mailgun 8

Implements hook_theme_suggestions_HOOK().

File

./mailgun.module, line 44
Contains mailgun.module.

Code

function mailgun_theme_suggestions_mailgun(array $variables) {
  $suggestions = [];
  $suggestions[] = 'mailgun__' . $variables['message']['module'];
  $suggestions[] = 'mailgun__' . $variables['message']['key'];
  $suggestions[] = 'mailgun__' . $variables['message']['module'] . '__' . $variables['message']['key'];
  return $suggestions;
}