You are here

function geofield_map_help in Geofield Map 8

Same name and namespace in other branches
  1. 8.2 geofield_map.module \geofield_map_help()

Implements hook_help().

File

./geofield_map.module, line 15
Contains the geofield_map.module.

Code

function geofield_map_help($route_name, RouteMatchInterface $route_match) {
  $output = '';
  switch ($route_name) {
    case 'help.page.geofield_map':
      $output .= '<h3>' . t('Geofield Map About') . '</h3>';
      $output .= '<p>' . t('Map Widget, Formatter and Views integration for Geofields.') . '</p>';
      $output .= '<p>' . t('For more info: @readme', [
        '@readme' => Link::fromTextAndUrl(t('Readme.md'), Url::fromUri('base:/' . drupal_get_path('module', 'geofield_map') . '/README.md', [
          'attributes' => [
            'target' => '_blank',
          ],
        ]))
          ->toString(),
      ]) . '</p>';
  }
  return $output;
}