function block_subtitle_help in Block Subtitle 8
Implements hook_help().
File
- ./
block_subtitle.module, line 18 - Adding subtitle to blocks.
Code
function block_subtitle_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the forms_to_email module.
case 'help.page.block_subtitle':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t("Block Subtitle allows users to add subtitle to any block through the block's configuration interface.") . '</p>';
$output .= '<h3>' . t('Installation note') . '</h3>';
$output .= '<dl>';
$output .= '<dt>' . t('Enable the module on <a href=":extend_link">extend menu</a>.', [
':extend_link' => Url::fromRoute('system.modules_list')
->toString(),
]) . '</dt>';
$output .= '</dl>';
$output .= '<h3>' . t('Usage') . '</h3>';
$output .= '<dl>';
$output .= '<dt>' . t("To add a subtitle to a block, simply visit that block's configuration page at Administration > Structure > Block Layout and click on Configure of the desired block.") . '</dt>';
$output .= '</dl>';
return $output;
}
}