function bibcite_help in Bibliography & Citation 2.0.x
Same name and namespace in other branches
- 8 bibcite.module \bibcite_help()
Implements hook_help().
File
- ./bibcite.module, line 48 
- Main module hooks.
Code
function bibcite_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.bibcite':
      $links = [
        ':proc' => Url::fromRoute('bibcite.settings')
          ->toString(),
        ':csl' => Url::fromRoute('entity.bibcite_csl_style.collection')
          ->toString(),
      ];
      $module = 'bibcite';
      return \Drupal::service('bibcite.help_service')
        ->getHelpMarkup($links, $route_name, $module);
  }
}