Log in
Model

AttributeMetadataHydrator

Magento\Customer\Model\Metadata\AttributeMetadataHydrator

What it does

This class converts customer attribute metadata between array format and AttributeMetadataInterface objects in Magento 2.

Developers use it when working with customer or address attributes to transform raw attribute data into structured objects (hydrate) or convert objects back to arrays (extract).

It handles nested data structures like validation rules and attribute options during the conversion process.

Public Methods

  • hydrate()
  • extract()