You are here

function commerce_payment_theme in Commerce Core 8.2

Same name and namespace in other branches
  1. 7 modules/payment/commerce_payment.module \commerce_payment_theme()

Implements hook_theme().

File

modules/payment/commerce_payment.module, line 67
Provides payment functionality.

Code

function commerce_payment_theme() {
  return [
    'commerce_payment_method' => [
      'render element' => 'elements',
    ],
    'commerce_payment_method__credit_card' => [
      'base hook' => 'commerce_payment_method',
      'render element' => 'elements',
    ],
    'commerce_payment_total_summary' => [
      'variables' => [
        'order_entity' => NULL,
      ],
    ],
  ];
}