public function Wishlist::getKeepPurchasedItems in Commerce Wishlist 8.3
Gets whether items should remain in the wishlist once purchased.
Return value
bool TRUE if purchased items should remain in the wishlist, FALSE otherwise.
Overrides WishlistInterface::getKeepPurchasedItems
File
- src/
Entity/ Wishlist.php, line 285
Class
- Wishlist
- Defines the wishlist entity class.
Namespace
Drupal\commerce_wishlist\EntityCode
public function getKeepPurchasedItems() {
return (bool) $this
->get('keep_purchased_items')->value;
}