Interface
ComponentInterface
Magento\Downloadable\Model\ComponentInterface
What it does
This interface defines the contract for downloadable product components (links and samples) in Magento 2.
Developers implement this interface when creating classes that handle file path management and search indexing for downloadable product files.
It ensures consistent behavior for retrieving base paths, temporary paths, and searchable data across different downloadable components.
Public Methods
- getBasePath()
- getBaseTmpPath()
- getSearchableData()