Model
CustomerMetadata
Magento\Customer\Model\Metadata\CustomerMetadata
What it does
This class provides metadata about customer entity attributes in Magento 2.
Developers use it to retrieve information about customer attributes like their validation rules, data types, and form configurations.
It's commonly used when building custom forms, validating customer data, or working with customer attribute information programmatically.
Public Methods
- getAttributes()
- getAttributeMetadata()
- getAllAttributesMetadata()
- getCustomAttributesMetadata()