Log in
Interface

ProductLinkManagementInterface

Magento\Catalog\Api\ProductLinkManagementInterface

What it does

This interface defines the contract for managing product relationships in Magento 2, such as related products, up-sells, and cross-sells.

Developers use this to programmatically retrieve existing product links by type or assign new product links to a product using its SKU.

It's commonly used in custom modules or integrations that need to manage product associations.

Public Methods

  • getLinkedItemsByType()
  • setProductLinks()