Log in
Model

DownloadableLinkDataProvider

Magento\WishlistGraphQl\Model\CartItems\DownloadableLinkDataProvider

What it does

This class prepares downloadable product link data when adding items from a wishlist to a cart in GraphQL requests.

It extracts the downloadable link IDs from the wishlist item's buy request and encodes them as selected options for the cart item.

Developers would use this when implementing wishlist-to-cart functionality for downloadable products in GraphQL.

Public Methods

  • execute()