public function UcWishlistManager::removeProduct in UC Wish List 8
This function is invoked to remove a specific product using the pid.
Parameters
$pid: refers to the id of a particular product.
Return value
string Removes the desired product using the pid.
File
- src/
Database/ UcWishlistManager.php, line 313
Class
- UcWishlistManager
- Defines an UcWishlistManager service.
Namespace
Drupal\uc_wishlist\DatabaseCode
public function removeProduct($pid) {
$this->connection
->delete('uc_wishlist_products')
->condition('nid', $pid)
->execute();
return $this->connection;
}