You are here

function swiftmailer_help in Swift Mailer 8

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

Implements hook_help().

File

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

Code

function swiftmailer_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.swiftmailer':
    case 'swiftmailer.transport_settings':
    case 'swiftmailer.message_settings':
    case 'swiftmailer.test':
      $output = '';
      $output .= '<p>' . t('The Swift Mailer module is designed to replace the default mail system that is shipped with Drupal. The initial configuration of this is done through the <a href=":mailsystem_settings">Mail System module</a>. Swift Mailer allows you to choose how e-mails should be sent. To read more about how this module works, please have a look at the <a href=":documentation">Swift Mailer documentation</a>.', [
        ':mailsystem_settings' => Url::fromRoute('mailsystem.settings')
          ->toString(),
        ':documentation' => 'https://swiftmailer.symfony.com/docs/introduction.html',
      ]) . '</p>';
      return $output;
  }
}