You are here

function automatic_updates_mail in Automatic Updates 8

Same name and namespace in other branches
  1. 7 automatic_updates.module \automatic_updates_mail()

Implements hook_mail().

File

./automatic_updates.module, line 166
Contains automatic_updates.module..

Code

function automatic_updates_mail($key, &$message, $params) {

  /** @var \Drupal\Core\Render\RendererInterface $renderer */
  $renderer = \Drupal::service('renderer');
  $message['subject'] = $params['subject'];
  $message['body'][] = $renderer
    ->render($params['body']);
}