Log in
Interface

ConverterInterface

Magento\Catalog\Model\ProductLink\Converter\ConverterInterface

What it does

This interface defines a contract for converting Magento Product objects into array representations.

Developers would implement this interface when they need to create custom converters for product links (related, upsell, cross-sell products), typically for API responses or data export scenarios.

It ensures a standardized way to transform product link data across different product link types.

Public Methods

  • convert()