You are here

function external_link_popup_help in External Link Pop-up 8

Implements hook_help().

File

./external_link_popup.module, line 14
The main module file.

Code

function external_link_popup_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'external_link_popup.settings':
      $output = '<p>' . t('Settings on the page applies to all Pop-ups.') . '</p>';
      return $output;
    case 'entity.external_link_popup.collection':
      $output = '<p>' . t('Pop-ups list, ordered by weight.') . '</p>';
      $output .= '<p>' . t('The Pop-ups are checked from top to bottom, and when domain condition is passed the matching Pop-up is shown, further lookup is stopped.');
      $output .= t('In this way any Pop-up below a Pop-up with "*" domain condition will never be shown.') . '</p>';
      $output .= '<p><em>' . t('Be careful, huge count of the Pop-ups can decrease your site frontend performance. Disable unused Pop-ups.') . '</em></p>';
      return $output;
  }
}