You are here

function external_hreflang_help in External Hreflang 8

Implements hook_help().

File

./external_hreflang.module, line 98
Module file.

Code

function external_hreflang_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.external_hreflang':
      $output = '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('External Hreflang project allows adding alternate hreflang for external sites (not languages in Drupal).') . '</p>';
      $output .= '<h3>' . t('Usage') . '</h3>';
      $output .= '<p>' . t('To configure just access your metatag configuration and you can check a new field called "External Hreflang".') . '</p>';
      $output .= '<p>' . t('Fill this field using key|value sintax using language|url. E.g:".') . '</p>';
      $output .= '<ul>';
      $output .= '<li>' . t('en-US|http://www.google.com') . '</li>';
      $output .= '<li>' . t('es-ES|http://www.google.es') . '</li>';
      $output .= '</ul>';
      return $output;
  }
}