public function WishlistInterface::hasItem in Commerce Wishlist 8.3
Checks whether the wishlist has a given wishlist item.
Parameters
\Drupal\commerce_wishlist\Entity\WishlistItemInterface $wishlist_item: The wishlist item.
Return value
bool TRUE if the wishlist item was found, FALSE otherwise.
1 method overrides WishlistInterface::hasItem()
- Wishlist::hasItem in src/
Entity/ Wishlist.php - Checks whether the wishlist has a given wishlist item.
File
- src/
Entity/ WishlistInterface.php, line 124
Class
- WishlistInterface
- Defines the interface for wishlists.
Namespace
Drupal\commerce_wishlist\EntityCode
public function hasItem(WishlistItemInterface $wishlist_item);