Skip to content
Snippets Groups Projects

Issue #3344164: Implement hook_help()

+ 16
0
@@ -5,6 +5,22 @@
* Contains button_formatter.module..
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function button_formatter_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the button_formatter module.
case 'help.page.button_formatter':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('The Button Formatter module introduces a new formatting option for file and link fields, allowing users to add a customizable button-style display. This enhances the visual appeal and user-friendliness of these fields, improving the overall user experience of the web application.') . '</p>';
return $output;
}
}
/**
* Implements hook_theme().
*/
Loading