Log in
Model

AttributeMetadataConverter

Magento\Customer\Model\AttributeMetadataConverter

What it does

This class converts Magento EAV attribute models into API-compatible AttributeMetadata data objects for customer attributes.

Developers use this when they need to transform attribute data from the database model into a standardized format for API responses, particularly when working with customer or address attributes.

It handles attribute properties, validation rules, and options (including special handling for prefix/suffix from system configuration).

Public Methods

  • createMetadataAttribute()