Log in
Model

RelatedProductRetriever

Magento\Downloadable\Model\RelatedProductRetriever

What it does

This class retrieves a parent product entity for downloadable products by its ID.

Developers use this utility when they need to fetch a product using its link field identifier, which is particularly useful in scenarios where downloadable products need to reference their parent product regardless of the entity linking mechanism (entity_id vs row_id in staging environments).

Public Methods

  • getProduct()