You are here

function commerce_cart_theme in Commerce Core 8.2

Same name and namespace in other branches
  1. 7 modules/cart/commerce_cart.module \commerce_cart_theme()

Implements hook_theme().

File

modules/cart/commerce_cart.module, line 38
Implements the shopping cart system and add to cart features.

Code

function commerce_cart_theme($existing, $type, $theme, $path) {
  return [
    'commerce_cart_block' => [
      'variables' => [
        'icon' => NULL,
        'count' => NULL,
        'count_text' => '',
        'content' => NULL,
        'url' => NULL,
        'links' => [],
      ],
    ],
    'commerce_cart_empty_page' => [
      'render element' => 'element',
    ],
  ];
}