Model
Sample
Magento\Downloadable\Model\Product\TypeHandler\Sample
What it does
This class handles the creation, modification, and deletion of downloadable product samples in Magento 2.
Developers use this when programmatically managing sample files that customers can preview before purchasing downloadable products.
It extends AbstractTypeHandler to process sample data, move uploaded files to proper directories, and link samples to products.
Public Methods
- getDataKey()
- getIdentifierKey()