Log in
Model

CreateHandler

Magento\Downloadable\Model\Sample\CreateHandler

What it does

This class handles the creation of downloadable product samples when a new downloadable product is saved.

It processes and saves all sample files (like demo files or previews) associated with a downloadable product through the sample repository.

Developers would typically not call this directly as it's triggered automatically during product save operations via Magento's entity manager extension mechanism.

Public Methods

  • execute()