You are here

public function WishlistStorageInterface::loadDefaultByUser in Commerce Wishlist 8.3

Loads the default wishlist for the given user.

Parameters

\Drupal\Core\Session\AccountInterface $account: The user.

string $wishlist_type_id: The wishlist type ID.

Return value

\Drupal\commerce_wishlist\Entity\WishlistInterface|null The default wishlist for the given, if known.

1 method overrides WishlistStorageInterface::loadDefaultByUser()
WishlistStorage::loadDefaultByUser in src/WishlistStorage.php
Loads the default wishlist for the given user.

File

src/WishlistStorageInterface.php, line 35

Class

WishlistStorageInterface
Defines the interface for wishlist storage.

Namespace

Drupal\commerce_wishlist

Code

public function loadDefaultByUser(AccountInterface $account, $wishlist_type_id);