public function UcWishlistManager::removeItem in UC Wish List 8
Any specific wish list product can be removed from the list by passing the wpid as a parameter.
Parameters
$pid: refers to the id of a particular wish list product.
Return value
string Removes the selected item from the wishlist.
File
- src/
Database/ UcWishlistManager.php, line 298
Class
- UcWishlistManager
- Defines an UcWishlistManager service.
Namespace
Drupal\uc_wishlist\DatabaseCode
public function removeItem($wpid) {
$this->connection
->delete('uc_wishlist_products')
->condition('wpid', $wpid)
->execute();
return $this->connection;
}