You are here

public function WishlistManagerInterface::removeWishlistItem in Commerce Wishlist 8.3

Removes the given wishlist item from the wishlist entity.

Parameters

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

\Drupal\commerce_wishlist\Entity\WishlistItemInterface $wishlist_item: The wishlist item.

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

1 method overrides WishlistManagerInterface::removeWishlistItem()
WishlistManager::removeWishlistItem in src/WishlistManager.php
Removes the given wishlist item from the wishlist entity.

File

src/WishlistManagerInterface.php, line 69

Class

WishlistManagerInterface
Manages the wishlist and its wishlist items.

Namespace

Drupal\commerce_wishlist

Code

public function removeWishlistItem(WishlistInterface $wishlist, WishlistItemInterface $wishlist_item, $save_wishlist = TRUE);