You are here

function freelinking_prepopulate_help in Freelinking 4.0.x

Same name and namespace in other branches
  1. 8.3 modules/freelinking_prepopulate/freelinking_prepopulate.module \freelinking_prepopulate_help()
  2. 7.3 modules/freelinking_prepopulate/freelinking_prepopulate.module \freelinking_prepopulate_help()

Implements hook_help().

File

modules/freelinking_prepopulate/freelinking_prepopulate.module, line 16
Freelinking prepopulate module file.

Code

function freelinking_prepopulate_help($route_name, RouteMatchInterface $route) {
  $hint = '';

  // @todo Re-implement advanced_help_hint.
  if ($route_name === 'help.page.freelinking_prepopulate') {
    if (\Drupal::hasService('advanced_help_hint.gethint')) {

      /** @var \Drupal\advanced_help_hint\Hint $hintService */
      $hintService = \Drupal::service('advanced_help_hint.gethint');
      $hint = '<p>' . $hintService
        ->produceHint('freelinking', 'https://www.drupal.org/docs/8/modules/freelinking', TRUE) . '</p>';
    }
    return '<p>' . t('This module provides plugins for Freelinking to prepopulate node create.') . '</p>' . $hint;
  }
}