Log in
Model

Builder

Magento\Downloadable\Model\Sample\Builder

What it does

This builder class constructs and configures Sample models for downloadable products in Magento 2.

Developers use it when creating or updating product samples (preview files) that customers can download before purchasing, handling file uploads from temporary storage and setting sample properties like title, sort order, and file paths.

Public Methods

  • setData()
  • build()