public function WishlistSessionInterface::hasWishlistId in Commerce Wishlist 8.3
Checks whether the given wishlist ID exists in the session.
Parameters
int $wishlist_id: The wishlist ID.
Return value
bool TRUE if the given wishlist ID exists in the session, FALSE otherwise.
1 method overrides WishlistSessionInterface::hasWishlistId()
- WishlistSession::hasWishlistId in src/
WishlistSession.php - Checks whether the given wishlist ID exists in the session.
File
- src/
WishlistSessionInterface.php, line 41
Class
- WishlistSessionInterface
- Stores wishlist ids in the anonymous user's session.
Namespace
Drupal\commerce_wishlistCode
public function hasWishlistId($wishlist_id);