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 collection providers that fetch related, up-sell, cross-sell, or other types of linked products.
It's used when you need to programmatically retrieve products that are linked to a specific product through Magento's product linking system.
Public Methods
- getLinkedProducts()