Log in
Interface

ContentInterface

Magento\Downloadable\Api\Data\File\ContentInterface

What it does

This interface defines the data structure for representing file content in Magento's Downloadable product module.

Developers use it when working with downloadable product files (samples or links) to handle file data in base64 encoded format along with file names, typically during API operations for uploading or retrieving downloadable content.

Public Methods

  • getFileData()
  • setFileData()
  • getName()
  • setName()
  • getExtensionAttributes()
  • setExtensionAttributes()