function dc_ajax_add_cart_popup_theme in Commerce Ajax Add to Cart 8
Implements hook_theme().
File
- modules/
dc_ajax_add_cart_popup/ dc_ajax_add_cart_popup.module, line 11 - Display a modal popup after a product is added to the cart with AJAX.
Code
function dc_ajax_add_cart_popup_theme($existing, $type, $theme, $path) {
return [
'dc_ajax_add_cart_popup' => [
'variables' => [
'product_variation' => NULL,
'product_variation_entity' => NULL,
'cart_url' => NULL,
],
],
];
}