Log in
Interface

ProductLinkTypeInterface

Magento\Catalog\Api\Data\ProductLinkTypeInterface

What it does

This interface defines the structure for product link types in Magento 2, which represent different relationships between products such as related products, upsells, and cross-sells.

Developers use this when working with product associations through the API to retrieve or set link type information like code and name.

It's part of Magento's service contract layer, ensuring consistent data structure across different implementations.

Public Methods

  • getCode()
  • setCode()
  • getName()
  • setName()
  • getExtensionAttributes()
  • setExtensionAttributes()