public function UcWishlistManager::deleteWishlist in UC Wish List 8
This function is invoked to delete a specific user wish list by passing the wid as a parameter.
Parameters
$wid: points to a particular wish list id.
Return value
string Deletes a particular wish list.
File
- src/
Database/ UcWishlistManager.php, line 264
Class
- UcWishlistManager
- Defines an UcWishlistManager service.
Namespace
Drupal\uc_wishlist\DatabaseCode
public function deleteWishlist($wid) {
$this->connection
->delete('uc_wishlists')
->condition('wid', $wid)
->execute();
$this->connection
->delete('uc_wishlist_products')
->condition('wid', $wid)
->execute();
}