Model
LinkRepository
Magento\Downloadable\Model\LinkRepository
What it does
This repository class manages downloadable product links in Magento 2.
Developers use it to create, read, update, and delete downloadable links for products (like digital files or URLs that customers can download after purchase).
It handles file uploads, validates link data, and ensures proper association between links and downloadable products.
Public Methods
- getList()
- getLinksByProduct()
- save()
- delete()