function uc_2checkout_ucga_display in Ubercart 8.4
Same name and namespace in other branches
- 5 payment/uc_2checkout/uc_2checkout.module \uc_2checkout_ucga_display()
- 6.2 payment/uc_2checkout/uc_2checkout.module \uc_2checkout_ucga_display()
- 7.3 payment/uc_2checkout/uc_2checkout.module \uc_2checkout_ucga_display()
Implements hook_ucga_display().
File
- payment/
uc_2checkout/ uc_2checkout.module, line 29 - Integrates 2Checkout.com's redirected payment service.
Code
function uc_2checkout_ucga_display() {
// Tell UC Google Analytics to display the e-commerce JS on the custom
// order completion page for this module.
$route_match = \Drupal::routeMatch();
if ($route_match
->getRouteName() == 'uc_2checkout.complete') {
return TRUE;
}
}