function commerce_worldpay_theme in Commerce Worldpay 8
Same name and namespace in other branches
- 8.2 commerce_worldpay.module \commerce_worldpay_theme()
Implements hook_theme().
File
- ./
commerce_worldpay.module, line 28 - Provides a Worldpay Business Gateway payment method for Drupal Commerce.
Code
function commerce_worldpay_theme() {
$common_vars = [
'installation_id' => NULL,
'order_id' => NULL,
'transaction_id' => NULL,
'return_url' => NULL,
];
return [
'commerce_worldpay_success' => [
'variables' => $common_vars,
'template' => 'commerce-worldpay-success',
],
'commerce_worldpay_cancel' => [
'variables' => $common_vars,
'template' => 'commerce-worldpay-cancel',
],
];
}