public function WishlistProviderInterface::getWishlists in Commerce Wishlist 8.3
Gets all wishlist entities for the given user.
Parameters
\Drupal\Core\Session\AccountInterface $account: The user. If empty, the current user is assumed.
Return value
\Drupal\commerce_wishlist\Entity\WishlistInterface[] A list of wishlist entities.
1 method overrides WishlistProviderInterface::getWishlists()
- WishlistProvider::getWishlists in src/
WishlistProvider.php - Gets all wishlist entities for the given user.
File
- src/
WishlistProviderInterface.php, line 67
Class
- WishlistProviderInterface
- Creates and loads wishlists for anonymous and authenticated users.
Namespace
Drupal\commerce_wishlistCode
public function getWishlists(AccountInterface $account = NULL);