You are here

public function WishlistInterface::setKeepPurchasedItems in Commerce Wishlist 8.3

Sets whether items should remain in the wishlist once purchased.

Parameters

bool $keep_purchased_items: Whether items should remain in the wishlist once purchased.

Return value

$this

1 method overrides WishlistInterface::setKeepPurchasedItems()
Wishlist::setKeepPurchasedItems in src/Entity/Wishlist.php
Sets whether items should remain in the wishlist once purchased.

File

src/Entity/WishlistInterface.php, line 178

Class

WishlistInterface
Defines the interface for wishlists.

Namespace

Drupal\commerce_wishlist\Entity

Code

public function setKeepPurchasedItems($keep_purchased_items);