Model
Link
Magento\Downloadable\Model\Link
What it does
This model represents a downloadable link for downloadable products in Magento 2.
Developers use this class to manage downloadable product links, including their titles, prices, file paths/URLs, sample files, download limits, and sharing settings.
It handles both file-based and URL-based downloadable content and persists link data to the database.
Public Methods
- afterSave()
- getBaseTmpPath()
- getBasePath()
- getBaseSampleTmpPath()
- getBaseSamplePath()
- getSearchableData()
- getTitle()
- getPrice()
- getIsShareable()
- getSortOrder()
- getNumberOfDownloads()
- getLinkType()
- getLinkFile()
- getLinkFileContent()
- getLinkUrl()
- getSampleType()
- getSampleFile()
- getSampleFileContent()
- getSampleUrl()
- setTitle()
- setSortOrder()
- setIsShareable()
- setPrice()
- setNumberOfDownloads()
- setLinkType()
- setLinkFile()
- setLinkFileContent()
- setLinkUrl()
- setSampleType()
- setSampleFile()
- setSampleFileContent()
- setSampleUrl()
- getExtensionAttributes()
- setExtensionAttributes()