Log in
Interface

MapProviderInterface

Magento\Catalog\Model\ProductLink\MapProviderInterface

What it does

This interface defines a contract for providers that fetch product link data in Magento 2.

Developers implement this interface to create custom providers that can retrieve related products, up-sells, cross-sells, or other product associations for given products and link types.

It's used in product collection loading to efficiently batch-load linked product relationships.

Public Methods

  • canProcessLinkType()
  • fetchMap()