Log in
Model

ProductLinkQuery

Magento\Catalog\Model\ProductLink\ProductLinkQuery

What it does

This class retrieves product links (related products, up-sells, cross-sells, etc.) in bulk based on specified criteria.

Developers use it when they need to efficiently fetch linked products for multiple products at once, rather than making individual queries for each product's links.

It's particularly useful for batch operations or API endpoints that need to return product relationship data.

Public Methods

  • search()