ProductLinkRepositoryInterface
Magento\Catalog\Api\ProductLinkRepositoryInterface
What it does
This interface defines methods for managing product links (relationships between products) such as related products, up-sells, and cross-sells.
Developers use this repository to retrieve all links for a product, create new product associations, or remove existing links either by entity object or by SKU and link type.
It provides a standardized API for handling product relationships in the catalog.
Public Methods
- getList()
- save()
- delete()
- deleteById()