public function UcWishlistManager::createWishlist in UC Wish List 8
This function is invoked to create a particular user wish list referring to the custom fields involved.
Parameters
$fields: variable that contains all the custom fields for creating a wish list.
$values: refers to the values of the wish list product parameters for creating a specific user wish list.
Return value
array creates a user wish list.
File
- src/
Database/ UcWishlistManager.php, line 70
Class
- UcWishlistManager
- Defines an UcWishlistManager service.
Namespace
Drupal\uc_wishlist\DatabaseCode
public function createWishlist($fields, $values) {
$this->connection
->insert('uc_wishlists')
->fields($fields, $values)
->execute();
}