Log in
Interface

ProductLinkAttributeInterface

Magento\Catalog\Api\Data\ProductLinkAttributeInterface

What it does

This interface defines the structure for product link attributes in Magento 2, which describe the properties of relationships between linked products (like related, upsell, or cross-sell products).

Developers use this when working with product associations to get or set attribute information such as the attribute code (e.g., 'position', 'qty') and type (e.g., 'int', 'decimal') that define how products are linked together.

Public Methods

  • getCode()
  • setCode()
  • getType()
  • setType()
  • getExtensionAttributes()
  • setExtensionAttributes()