Skip to content
Snippets Groups Projects

Issue #3344167: Implement hook_help()

Open Shubham Rathore requested to merge issue/image_field_360-3344167:8.x-1.x into 8.x-1.x
1 file
+ 18
0
Compare changes
  • Side-by-side
  • Inline
+ 18
0
@@ -4,3 +4,21 @@
* @file
* Contains image_field_360.module.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function image_field_360_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.image_field_360':
$filepath = dirname(__FILE__) . '/README.txt';
if (file_exists($filepath)) {
$readme = file_get_contents($filepath);
$output = '<pre>' . $readme . '</pre>';
return $output;
}
}
}
Loading