Sample
Magento\Downloadable\Model\ResourceModel\Sample
What it does
This resource model manages database operations for downloadable product samples in Magento 2.
Developers use this class to save sample titles with store-specific translations, delete sample records and their associated titles, and retrieve searchable sample data for product indexing.
It handles the persistence layer for the downloadable_sample and downloadable_sample_title database tables.
Public Methods
- saveItemTitle()
- deleteItems()
- getSearchableData()