MetadataInterface
Magento\Customer\Api\MetadataInterface
What it does
This interface provides methods to retrieve metadata information about customer-related attributes in Magento 2.
Developers use this to access attribute properties like validation rules, frontend labels, and data types when working with customer or address forms.
It's commonly used when building custom forms, importing/exporting customer data, or validating attribute values programmatically.
Public Methods
- getAttributes()
- getAttributeMetadata()
- getAllAttributesMetadata()
- getCustomAttributesMetadata()