public function WishlistPurchaseItem::toPurchase in Commerce Wishlist 8.3
Gets the purchase value object for the current field item.
Return value
\Drupal\commerce_wishlist\WishlistPurchase The purchase.
File
- src/
Plugin/ Field/ FieldType/ WishlistPurchaseItem.php, line 105
Class
- WishlistPurchaseItem
- Plugin implementation of the 'commerce_wishlist_purchase' field type.
Namespace
Drupal\commerce_wishlist\Plugin\Field\FieldTypeCode
public function toPurchase() {
return new WishlistPurchase($this->order_id, $this->quantity, $this->purchased);
}