Log in
Model

ProductLinkQuery

Magento\Catalog\Model\ProductLink\ProductLinkQuery

What it does

This class provides a batch search mechanism for retrieving product links (related products, up-sells, cross-sells, etc.) based on specified criteria.

Developers use this when they need to efficiently fetch product relationships for one or multiple products at once, rather than loading links individually.

It returns structured results matching the order of the input criteria, making it ideal for bulk operations.

Public Methods

  • search()