Log in
Model

Converter

Magento\Catalog\Model\Product\Link\Converter

What it does

This class converts product link information into a grouped array structure, organizing links by their type (related, upsell, cross-sell, associated).

Developers use this when they need to transform product relationships from the database model format into a more accessible array format, particularly useful for API responses or frontend display of grouped product associations.

Public Methods

  • convertLinksToGroupedArray()