Log in
Interface

ProductLinkManagementInterface

Magento\Catalog\Api\ProductLinkManagementInterface

What it does

This interface defines methods for managing product link relationships in Magento 2.

Developers use it to retrieve and assign product links (such as related products, up-sells, cross-sells) between products programmatically.

It provides a standardized API for working with product associations through the product SKU.

Public Methods

  • getLinkedItemsByType()
  • setProductLinks()