Skip to content

Instantly share code, notes, and snippets.

@heddn
Last active August 26, 2016 19:47
Show Gist options
  • Save heddn/3a5ddf18baae377d2a1ca76cd6c96e82 to your computer and use it in GitHub Desktop.
Save heddn/3a5ddf18baae377d2a1ca76cd6c96e82 to your computer and use it in GitHub Desktop.
<?php
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function custom_module_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the custom_module module.
case 'help.page.custom_module':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('The Custo module provides custom configuration') . '</p>';
return $output;
default:
}
}
/**
* Implements hook_theme().
*/
function custom_module_theme($existing, $type, $theme, $path) {
return [
'custom_resource_links' => [
'variables' => [],
],
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment