You are here

function swiftmailer_theme_suggestions_swiftmailer in Swift Mailer 8

Same name and namespace in other branches
  1. 8.2 swiftmailer.module \swiftmailer_theme_suggestions_swiftmailer()

Implements hook_theme_suggestions_HOOK() for swiftmailer.

File

./swiftmailer.module, line 78
This is the primary module file.

Code

function swiftmailer_theme_suggestions_swiftmailer(array $variables) {
  $suggestions = [];
  $suggestions[] = 'swiftmailer__' . $variables['message']['module'];
  $suggestions[] = 'swiftmailer__' . $variables['message']['module'] . '__' . strtr($variables['message']['key'], '-', '_');
  return $suggestions;
}