Log in
Model

ListCriteria

Magento\Catalog\Model\ProductLink\Data\ListCriteria

What it does

This class serves as a data transfer object (DTO) that encapsulates search criteria for retrieving product links (related products, up-sells, cross-sells, etc.).

Developers use this when they need to query product links by specifying which product the links belong to, optionally filtering by specific link types like 'related' or 'crosssell'.

Public Methods

  • getBelongsToProductSku()
  • getLinkTypes()
  • getBelongsToProduct()