Log in
Interface

ProductLinkInterface

Magento\Catalog\Api\Data\ProductLinkInterface

What it does

This interface defines the contract for product link objects in Magento 2, which represent relationships between products such as related products, up-sells, and cross-sells.

Developers use this interface when working with product associations through the API, allowing them to retrieve and set information about linked products including their SKU, link type, position, and product type.

Public Methods

  • getSku()
  • setSku()
  • getLinkType()
  • setLinkType()
  • getLinkedProductSku()
  • setLinkedProductSku()
  • getLinkedProductType()
  • setLinkedProductType()
  • getPosition()
  • setPosition()
  • getExtensionAttributes()
  • setExtensionAttributes()