MageSmith
INTERFACE Magento 2.4.9

CustomAttributeMetadataInterface

An interface containing fields that define the EAV attribute.

Declared or extended by: Eav

Fields

code ID! Required

The unique identifier for an attribute code. This value should be in lowercase letters without spaces.

label String

The label assigned to the attribute.

entity_type AttributeEntityTypeEnum! Required

The type of entity that defines the attribute.

The frontend input type of the attribute.

frontend_class String

The frontend class of the attribute.

is_required Boolean! Required

Whether the attribute value is required.

default_value String

Default attribute value.

is_unique Boolean! Required

Whether the attribute value must be unique.

options [CustomAttributeOptionInterface!]! Required

Attribute options.

Every Magento dev tool, in one hosted workspace.

Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.