Log in
Interface

LinkInterface

Magento\Downloadable\Api\Data\LinkInterface

What it does

This interface defines the contract for downloadable product links in Magento 2.

Developers use it to create, read, and manipulate downloadable file links that customers can purchase and download, including properties like price, download limits, file type (URL or file), and sample files.

It's essential when working with downloadable products through the API or creating custom downloadable product functionality.

Public Methods

  • getId()
  • setId()
  • getTitle()
  • setTitle()
  • getSortOrder()
  • setSortOrder()
  • getIsShareable()
  • setIsShareable()
  • getPrice()
  • setPrice()
  • getNumberOfDownloads()
  • setNumberOfDownloads()
  • getLinkType()
  • setLinkType()
  • getLinkFile()
  • setLinkFile()
  • getLinkFileContent()
  • setLinkFileContent()
  • getLinkUrl()
  • setLinkUrl()
  • getSampleType()
  • setSampleType()
  • getSampleFile()
  • setSampleFile()
  • getSampleFileContent()
  • setSampleFileContent()
  • getSampleUrl()
  • setSampleUrl()
  • getExtensionAttributes()
  • setExtensionAttributes()