Skip to content
Snippets Groups Projects

Issue #3343327: Implement hook_help()

1 file
+ 16
0
Compare changes
  • Side-by-side
  • Inline
@@ -8,6 +8,22 @@
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Site\Settings;
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function amazon_product_widget_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the amazon_product_widget module.
case 'help.page.amazon_product_widget':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Amazon Products Integration module is designed to integrate Amazon products into a website. The module offers custom theming, caching, and automated fetching, storing, and renewal of product data.') . '</p>';
$output .= '<p>' . t('To use the module, an Amazon Associates account is required, along with a SQL storage backend. With this module, website owners can easily showcase Amazon products on their site.') . '</p>';
return $output;
}
}
/**
* Implements hook_help().
Loading