public static function OrderConnectStorage::delete in Basic cart 8
Same name and namespace in other branches
- 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
File
- src/
OrderConnectStorage.php, line 89
Class
- OrderConnectStorage
- Class OrderConnectStorage.
Namespace
Drupal\basic_cartCode
public static function delete($entry) {
db_delete(self::TABLE)
->condition('oid', $entry['oid'])
->condition('entitytype', $entry['entitytype'])
->condition('id', $entry['id'])
->execute();
}