You are here

function commerce_wishlist_theme in Commerce Wishlist 8.3

Same name and namespace in other branches
  1. 7.3 commerce_wishlist.module \commerce_wishlist_theme()
  2. 7.2 commerce_wishlist.module \commerce_wishlist_theme()

Implements hook_theme().

File

./commerce_wishlist.module, line 54
Defines the Wishlist entity and associated features.

Code

function commerce_wishlist_theme($existing, $type, $theme, $path) {
  return [
    'commerce_wishlist' => [
      'render element' => 'elements',
    ],
    'commerce_wishlist_block' => [
      'variables' => [
        'count' => NULL,
        'count_text' => '',
        'wishlist_entity' => NULL,
        'url' => NULL,
      ],
    ],
    'commerce_wishlist_empty_page' => [
      'render element' => 'element',
    ],
    'commerce_wishlist_share_mail' => [
      'variables' => [
        'wishlist_entity' => NULL,
      ],
    ],
    'commerce_wishlist_user_form' => [
      'render element' => 'form',
    ],
    'commerce_wishlist_item_details' => [
      'variables' => [
        'wishlist_item_entity' => NULL,
      ],
    ],
  ];
}