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 it to programmatically create, retrieve, update, or delete links between products through the service contract API, ensuring proper validation and persistence of product associations.
Public Methods
- save()
- getList()
- delete()
- deleteById()