MetadataInterface
Magento\Customer\Api\MetadataInterface
What it does
This interface defines methods for retrieving metadata about customer and customer address attributes in Magento 2.
Developers use this to get information about attribute properties like validation rules, input types, and available options, either for all attributes, specific forms, or individual attributes.
It's commonly used when building custom forms, validating customer data, or working with EAV attributes programmatically.
Public Methods
- getAttributes()
- getAttributeMetadata()
- getAllAttributesMetadata()
- getCustomAttributesMetadata()