Log in
Collection

Sample\Collection

Magento\Downloadable\Model\ResourceModel\Sample\Collection

What it does

This collection class manages downloadable product samples in Magento 2.

Developers use it to retrieve and filter sample data for downloadable products, filter samples by product ID, and load sample titles based on store view.

It's commonly used when displaying or managing downloadable samples on product pages or in admin grids.

Public Methods

  • addProductToFilter()
  • addTitleToResult()