You are here

public function UcWishlistManager::getWishlist in UC Wish List 8

This function retrieves a specific wish list by passing a particular wid as the function parameter.

Parameters

int $wid: Displays a particular wish list by retrieving its wid.

Return value

array displays a specific wish list to the user.

File

src/Database/UcWishlistManager.php, line 188

Class

UcWishlistManager
Defines an UcWishlistManager service.

Namespace

Drupal\uc_wishlist\Database

Code

public function getWishlist($wid) {
  $this->connection
    ->query("SELECT * FROM {uc_wishlists} WHERE wid = :wid", [
    ':wid' => $wid,
  ]);
}