Log in
Model

Attribute

Magento\Customer\Model\Attribute

What it does

This class represents a customer attribute model in Magento 2, extending the base EAV attribute functionality specifically for customer entities.

Developers use this class when working with customer attributes, such as creating custom customer fields, managing attribute properties, and handling attribute-related operations that trigger customer grid reindexing and cache invalidation.

Public Methods

  • afterSave()
  • afterDelete()
  • afterDeleteCommit()
  • invalidate()
  • canBeSearchableInGrid()
  • canBeFilterableInGrid()