Attribute
Magento\Catalog\Model\ProductLink\Attribute
What it does
This class represents a product link attribute in Magento 2, which defines metadata for relationships between products (like related products, upsells, or cross-sells).
Developers use this class to define and manage custom attributes for product links, specifying the attribute code and data type.
It's commonly used when working with the Product Link API to extend product relationship functionality.
Public Methods
- getCode()
- getType()
- setCode()
- setType()
- getExtensionAttributes()
- setExtensionAttributes()