CollectionProviderInterface
Magento\Catalog\Model\ProductLink\CollectionProviderInterface
What it does
This interface defines a contract for retrieving linked products associated with a given product in Magento 2.
Developers implement this interface to create custom product link collection providers that return related, upsell, cross-sell, or other types of linked products.
It's used when you need to fetch and display products that are linked to a specific product through various product relationships.
Public Methods
- getLinkedProducts()