Repository
LinkRepositoryInterface
Magento\Downloadable\Api\LinkRepositoryInterface
What it does
This repository interface manages downloadable product links in Magento 2.
Developers use it to retrieve, create, update, or delete downloadable links associated with products, such as digital downloads, PDFs, or software files.
It provides methods to fetch links by product SKU or product object, save new or updated links, and remove existing links.
Public Methods
- getList()
- getLinksByProduct()
- save()
- delete()