' . t('Dear @user,', array('@user' => $user->getDisplayName())) . '
'; $text[] = '' . t('This e-mail has been sent from @site by the Swift Mailer module. The module has been successfully configured.', array('@site' => \Drupal::config('system.site')->get('name'))) . '
'; $text[] = t('Kind regards') . ''; $text[] = t('The Swift Mailer module'); $message['subject'] = t('Swift Mailer has been successfully configured!'); $message['body'] = array_map(function ($text) { return Markup::create($text); }, $text); } ?>