Log in
Interface

ListCriteriaInterface

Magento\Catalog\Model\ProductLink\Data\ListCriteriaInterface

What it does

This interface defines criteria for filtering and retrieving product link lists in Magento 2.

Developers use it when they need to query product relationships (like related products, up-sells, or cross-sells) by specifying which product the links belong to and optionally filtering by link types.

It's typically used in repository or collection classes to standardize search parameters for product links.

Public Methods

  • getBelongsToProductSku()
  • getLinkTypes()