Log in
Model

Type

Magento\Catalog\Model\Product\Attribute\Type

What it does

This class represents a product attribute type data model in Magento 2's Catalog module.

Developers use it to work with attribute type information, such as getting or setting the type value (e.g., 'text', 'select') and its display label.

It's typically used when creating custom attributes, working with attribute metadata, or building UI components that display attribute type information.

Public Methods

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