You are here

function rocket_chat_help in Rocket.Chat 8.2

Same name and namespace in other branches
  1. 8 rocket_chat.module \rocket_chat_help()
  2. 7.2 rocket_chat.module \rocket_chat_help()
  3. 7 rocket_chat.module \rocket_chat_help()

Implements hook_help().

Parameters

$route_name:

\Drupal\Core\Routing\RouteMatchInterface $route_match:

Return value

string

File

./rocket_chat.module, line 41
Rocket.Chat Module for Drupal 8.

Code

function rocket_chat_help($route_name, RouteMatchInterface $route_match) {
  if ($route_name === 'rocket_chat.admin_settings') {
    $output = '<div class="admin admin_title title rocketchat">';
    $output .= '<h4>' . t('Rocket.Chat configuration management.') . '</h4>';
    $output .= '<div class="admin rocketchat">';
    $output .= t("Here you configure the Rocket chat connection detail.");
    $output .= '</div></div>';
    return $output;
  }

  // No help rendered so returning an empty string.
  return "";
}