public function Wishlist::getItems in Commerce Wishlist 8.3
Gets the wishlist items.
Return value
\Drupal\commerce_wishlist\Entity\WishlistItemInterface[] The wishlist items.
Overrides WishlistInterface::getItems
1 call to Wishlist::getItems()
- Wishlist::postSave in src/
Entity/ Wishlist.php - Acts on a saved entity before the insert or update hook is invoked.
File
- src/
Entity/ Wishlist.php, line 187
Class
- Wishlist
- Defines the wishlist entity class.
Namespace
Drupal\commerce_wishlist\EntityCode
public function getItems() {
return $this
->get('wishlist_items')
->referencedEntities();
}