Log in
Model

WishlistOutput

Magento\Wishlist\Model\Wishlist\Data\WishlistOutput

What it does

This is a Data Transfer Object (DTO) that represents the output result when adding products to a wishlist, primarily used in GraphQL operations.

It encapsulates both the updated wishlist object and any errors that occurred during the operation, allowing developers to handle both successful additions and failures in a single response.

Public Methods

  • getWishlist()
  • getErrors()