Skip to content
Snippets Groups Projects

Issue #3343310: Implement hook_help()

1 file
+ 18
0
Compare changes
  • Side-by-side
  • Inline
+ 18
0
@@ -5,6 +5,24 @@
* Provides Commerce integration for Braintree Payments.
*/
use Drupal\Core\Routing\RouteMatchInterface;
/**
* Implements hook_help().
*/
function commerce_braintree_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the commerce_braintree module.
case 'help.page.commerce_braintree':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Braintree Payments Integration module is designed to integrate Braintree Payments with Drupal Commerce. With this module, website owners can accept credit card payments on their site and securely store card data in the Braintree vault for future processing.') . '</p>';
$output .= '<p>' . t('The module is a convenient solution for online stores using Drupal Commerce to manage their transactions. It allows customers to make payments directly on the site, without being redirected to a third-party payment gateway. The Braintree vault ensures that card data is stored safely and securely, protecting both the customer and the merchant.') . '</p>';
$output .= '<p>' . t('With the Braintree Payments Integration module, website owners can provide a seamless checkout experience for their customers and streamline their payment processing workflow.') . '</p>';
return $output;
}
}
/**
* Implements hook_theme().
*/
Loading