You are here

basic_cart.inc in Basic cart 8.4

Basic cart inc file.

File

basic_cart.inc
View source
<?php

/**
 * @file
 * Basic cart inc file.
 */
use Drupal\basic_cart\Utility;

/**
 * Get Cart data.
 */
function basic_cart_get_cart() {
  $cart = Utility::getCart();
  return $cart;
}

/**
 * Empty cart data.
 */
function basic_cart_empty_cart() {
  $cart = Utility::emptyCart();
  return $cart;
}

Functions

Namesort descending Description
basic_cart_empty_cart Empty cart data.
basic_cart_get_cart Get Cart data.