You are here

public function UcWishlistManager::createWishlistProduct in UC Wish List 8

This function is invoked to create/add related wish list products with reference to the set of 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 displays a list of wish list products.

File

src/Database/UcWishlistManager.php, line 89

Class

UcWishlistManager
Defines an UcWishlistManager service.

Namespace

Drupal\uc_wishlist\Database

Code

public function createWishlistProduct($fields, $values) {
  $this->connection
    ->insert('uc_wishlist_products')
    ->fields($fields, $values)
    ->execute();
}