You are here

function faqfield_help in FAQ Field 8

Same name and namespace in other branches
  1. 7 faqfield.module \faqfield_help()
  2. 2.0.x faqfield.module \faqfield_help()

Implements hook_help().

File

./faqfield.module, line 17
Defines a field for frequently asked questions.

Code

function faqfield_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.faqfield':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The FAQ Field module defines a field for storing frequently asked questions, for use with the Field module. See the <a href=":field_ui">Field module help page</a> for more information about fields.', [
        ':field_ui' => \Drupal::moduleHandler()
          ->moduleExists('field_ui') ? Url::fromRoute('help.page', [
          'name' => 'field_ui',
        ])
          ->toString() : '#',
      ]) . '</p>';
      return $output;
  }
}