Model
ProductLink\Repository
Magento\Catalog\Model\ProductLink\Repository
What it does
This repository class manages product link relationships in Magento 2, such as related products, up-sells, and cross-sells.
Developers use this class to programmatically create, retrieve, or delete links between products through the API.
It provides methods to save new product links, get all links for a product, and remove existing product relationships.
Public Methods
- save()
- getList()
- delete()
- deleteById()