public function WishlistProviderInterface::getWishlistId in Commerce Wishlist 8.3
Gets the wishlist entity ID for the given user.
Parameters
string $wishlist_type: The wishlist type ID.
\Drupal\Core\Session\AccountInterface $account: The user. If empty, the current user is assumed.
Return value
int|null The wishlist entity ID, or NULL if none found.
1 method overrides WishlistProviderInterface::getWishlistId()
- WishlistProvider::getWishlistId in src/
WishlistProvider.php - Gets the wishlist entity ID for the given user.
File
- src/
WishlistProviderInterface.php, line 56
Class
- WishlistProviderInterface
- Creates and loads wishlists for anonymous and authenticated users.
Namespace
Drupal\commerce_wishlistCode
public function getWishlistId($wishlist_type, AccountInterface $account = NULL);