Model
ConvertSamplesToArray
Magento\DownloadableGraphQl\Model\ConvertSamplesToArray
What it does
This class converts Magento Downloadable product sample objects into array format suitable for GraphQL responses.
Developers use this when exposing downloadable product sample information through GraphQL APIs, as it transforms sample entities into a structured array with ID, title, sort order, and a download URL for each sample.
Public Methods
- execute()