You are here

public static function OrderConnectStorage::delete in Basic cart 8

Same name and namespace in other branches
  1. 8.0 src/OrderConnectStorage.php \Drupal\basic_cart\OrderConnectStorage::delete()

Delete an entry from the database.

Parameters

array $entry: An array containing at least the person identifier 'pid' element of the entry to delete.

See also

db_delete()

File

src/OrderConnectStorage.php, line 89

Class

OrderConnectStorage
Class OrderConnectStorage.

Namespace

Drupal\basic_cart

Code

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