You are here

function commerce_invoice_theme in Commerce Invoice 8.2

Same name and namespace in other branches
  1. 7.2 commerce_invoice.module \commerce_invoice_theme()
  2. 7 commerce_invoice.module \commerce_invoice_theme()

Implements hook_theme().

File

./commerce_invoice.module, line 218
Defines the Invoice entity and associated features.

Code

function commerce_invoice_theme() {
  return [
    'commerce_invoice' => [
      'render element' => 'elements',
    ],
    'commerce_invoice__admin' => [
      'base hook' => 'commerce_invoice',
      'render element' => 'elements',
    ],
    'commerce_invoice_total_summary' => [
      'variables' => [
        'invoice_entity' => NULL,
        'totals' => NULL,
      ],
    ],
    'commerce_invoice_confirmation' => [
      'variables' => [
        'invoice_entity' => NULL,
        'totals' => NULL,
      ],
    ],
  ];
}