You are here

function mautic_help in Mautic Integration 8

Implements hook_help().

File

./mautic.module, line 18
Drupal Module: Mautic.

Code

function mautic_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.mautic':
      $output = '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Mautic adds a web statistics tracking system to your website.') . '</p>';
      $output .= '<h3>' . t('Uses') . '</h3>';
      $output .= '<dt>' . t('Configuring Mautic') . '</dt>';
      $output .= '<dd>' . t('All settings for this module can be found on the <a href=":mautic_settings">Mautic settings</a> page. When entering the Mautic code here, it will automatically add the required JavaScript to every page generated.', [
        ':mautic_settings' => Url::fromRoute('mautic.admin_settings_form')
          ->toString(),
      ]) . '</dd>';
      return $output;
    case 'mautic.admin_settings_form':
      return t('<a href=":mautic_url">Mautic</a> is a free website traffic and marketing effectiveness service.', [
        ':mautic_url' => 'https://www.mautic.org/',
      ]);
  }
}