Log in
Model

AddressMetadata

Magento\Customer\Model\Metadata\AddressMetadata

What it does

This class provides metadata information about customer address attributes in Magento 2.

Developers use it to retrieve attribute configurations, validation rules, and custom attributes for address forms and data objects.

It's commonly used when working with address forms, custom address attributes, or validating address data programmatically.

Public Methods

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