Log in
Interface

ProductAttributeTypeInterface

Magento\Catalog\Api\Data\ProductAttributeTypeInterface

What it does

This interface defines the contract for representing a product attribute type in Magento 2.

Developers use this when working with product attribute metadata to get or set the type value (e.g., 'text', 'select') and its human-readable label.

It's commonly used in attribute management operations and API responses that need to describe the available types of product attributes.

Public Methods

  • getValue()
  • setValue()
  • getLabel()
  • setLabel()
  • getExtensionAttributes()
  • setExtensionAttributes()