Model
LinkTypeProvider
Magento\Catalog\Model\Product\LinkTypeProvider
What it does
This class manages and provides information about product link types in Magento 2 (such as related products, up-sells, and cross-sells).
Developers use this class to retrieve available link types, get their attributes, and access link type metadata when working with product relationships programmatically.
Public Methods
- getLinkTypes()
- getItems()
- getItemAttributes()