Model
Builder
Magento\Downloadable\Model\Link\Builder
What it does
This builder class constructs and configures downloadable link models for downloadable products in Magento 2.
Developers use it when programmatically creating or updating downloadable product links, as it handles file uploads, sample files, pricing, sort order, and download limits while ensuring data integrity and proper file management.
Public Methods
- setData()
- build()