You are here

function commerce_order_theme in Commerce Core 8.2

Implements hook_theme().

File

modules/order/commerce_order.module, line 24
Defines the Order entity and associated features.

Code

function commerce_order_theme($existing, $type, $theme, $path) {
  return [
    'commerce_order' => [
      'render element' => 'elements',
    ],
    'commerce_order__admin' => [
      'base hook' => 'commerce_order',
      'render element' => 'elements',
    ],
    'commerce_order__user' => [
      'base hook' => 'commerce_order',
      'render element' => 'elements',
    ],
    'commerce_order_edit_form' => [
      'render element' => 'form',
    ],
    'commerce_order_receipt' => [
      'variables' => [
        'order_entity' => NULL,
        'billing_information' => NULL,
        'shipping_information' => NULL,
        'payment_method' => NULL,
        'totals' => NULL,
      ],
    ],
    'commerce_order_receipt__entity_print' => [
      'base hook' => 'commerce_order_receipt',
    ],
    'commerce_order_total_summary' => [
      'variables' => [
        'order_entity' => NULL,
        'totals' => NULL,
      ],
    ],
    'commerce_order_item' => [
      'render element' => 'elements',
    ],
  ];
}