Log in
Model

Management

Magento\Catalog\Model\ProductLink\Management

What it does

This class manages product links (related products, up-sells, cross-sells) through Magento's API.

Developers use it to retrieve linked products of a specific type for a product SKU, or to programmatically add new product links.

It validates link types and handles saving product relationships to the database.

Public Methods

  • getLinkedItemsByType()
  • setProductLinks()