You are here

function commerce_price_theme in Commerce Core 8.2

Same name and namespace in other branches
  1. 7 modules/price/commerce_price.module \commerce_price_theme()

Implements hook_theme().

File

modules/price/commerce_price.module, line 17
Defines the Currency entity and the Price field.

Code

function commerce_price_theme() {
  return [
    'commerce_price_plain' => [
      'variables' => [
        'number' => 0,
        'currency' => NULL,
      ],
      'template' => 'commerce-price-plain',
    ],
    'commerce_price_calculated' => [
      'variables' => [
        'calculated_price' => NULL,
        'purchasable_entity' => NULL,
      ],
    ],
  ];
}