Log in
Factory

WishlistItemFactory

Magento\Wishlist\Model\Wishlist\Data\WishlistItemFactory

What it does

This factory class creates WishlistItem Data Transfer Objects (DTOs) from array data, typically used when processing wishlist operations through GraphQL or API requests.

It handles the conversion of raw input data into structured WishlistItem objects with proper validation, including customer-selected product options and entered custom values.

Developers use this when they need to construct wishlist item objects from API payloads or form submissions.

Public Methods

  • create()