Log in
Model

Type

Magento\Catalog\Model\ProductLink\Type

What it does

This class represents a product link type in Magento 2, defining the relationship types between products (such as related products, up-sells, or cross-sells).

Developers use this class to retrieve or set product link type information including the type code and name, typically when working with product associations through the Catalog API.

Public Methods

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