You are here

public function WishlistManagerInterface::emptyWishlist in Commerce Wishlist 8.3

Empties the given wishlist entity.

Parameters

\Drupal\commerce_wishlist\Entity\WishlistInterface $wishlist: The wishlist entity.

bool $save_wishlist: Whether the wishlist should be saved after the operation.

1 method overrides WishlistManagerInterface::emptyWishlist()
WishlistManager::emptyWishlist in src/WishlistManager.php
Empties the given wishlist entity.

File

src/WishlistManagerInterface.php, line 22

Class

WishlistManagerInterface
Manages the wishlist and its wishlist items.

Namespace

Drupal\commerce_wishlist

Code

public function emptyWishlist(WishlistInterface $wishlist, $save_wishlist = TRUE);