public function WishlistPurchase::toArray in Commerce Wishlist 8.3
Gets the array representation of the purchase.
Return value
array The array representation of the purchase.
File
- src/
WishlistPurchase.php, line 98
Class
- WishlistPurchase
- Provides a value object for wishlist purchases.
Namespace
Drupal\commerce_wishlistCode
public function toArray() {
return [
'order_id' => $this->orderId,
'quantity' => $this->quantity,
'purchased' => $this->purchased,
];
}