function sharerich_help in Sharerich 8
Implements hook_help().
File
- ./
sharerich.module, line 16 - Contains sharerich.module..
Code
function sharerich_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'sharerich.admin_settings_form':
$output = '';
$output .= '<p>' . t('You can manage your Sharerich sets at <a href=":menu-settings">Structure > Sharerich</a>.', array(
':menu-settings' => Url::fromRoute('entity.sharerich.collection'),
)) . '</p>';
return $output;
break;
case 'entity.sharerich.collection':
$output = '';
$output .= '<p>' . t('Global settings are available at the <a href=":menu-settings">configuration page</a>.', array(
':menu-settings' => Url::fromRoute('sharerich.admin_settings_form'),
)) . '</p>';
return $output;
break;
default:
}
}