Log in
Model

CustomerMetadata

Magento\Customer\Model\Metadata\CustomerMetadata

What it does

This class provides access to customer entity attribute metadata in Magento 2.

Developers use it to retrieve information about customer attributes such as their configuration, validation rules, and properties - whether for a specific form, individual attributes, or all custom attributes.

It's commonly used when working with customer data operations, form generation, or extending customer functionality.

Public Methods

  • getAttributes()
  • getAttributeMetadata()
  • getAllAttributesMetadata()
  • getCustomAttributesMetadata()