You are here

public static function OrderConnectStorage::orderDelete in Basic cart 8

Same name and namespace in other branches
  1. 8.0 src/OrderConnectStorage.php \Drupal\basic_cart\OrderConnectStorage::orderDelete()
1 call to OrderConnectStorage::orderDelete()
basic_cart_entity_delete in ./basic_cart.module
Implements hook_entity_delete().

File

src/OrderConnectStorage.php, line 98

Class

OrderConnectStorage
Class OrderConnectStorage.

Namespace

Drupal\basic_cart

Code

public static function orderDelete($entry) {
  db_delete(self::TABLE)
    ->condition('oid', $entry['oid'])
    ->condition('entitytype', $entry['entitytype'])
    ->execute();
}