Model
LinkTypeProvider
Magento\Catalog\Model\Product\LinkTypeProvider
What it does
This class manages and provides information about available product link types in Magento 2, such as related products, up-sells, and cross-sells.
Developers use it to retrieve all available link types, get link type details as data objects, or fetch the attributes associated with a specific link type.
It serves as a central registry for product relationship configurations.
Public Methods
- getLinkTypes()
- getItems()
- getItemAttributes()