function redis_help in Redis 8
Same name and namespace in other branches
- 7.3 redis.module \redis_help()
- 7 redis.module \redis_help()
- 7.2 redis.module \redis_help()
Implements hook_help().
File
- ./
redis.module, line 17 - Redis module.
Code
function redis_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.redis':
if (ClientFactory::hasClient()) {
$messages = '<p><strong>' . t("Current connected client uses the <em>@name</em> library.", [
'@name' => ClientFactory::getClientName(),
]) . '</strong></p>';
}
else {
$messages = '<p><strong>' . t('No redis connection configured.') . '</strong></p>';
}
return $messages;
}
}