Log in
Interface

CustomerMetadataInterface

Magento\Customer\Api\CustomerMetadataInterface

What it does

This interface defines constants and serves as a contract for retrieving metadata about customer attributes in Magento 2.

Developers use this when they need to access information about customer entity attributes, such as their configuration, validation rules, or data types.

It's primarily used in custom modules that need to work with customer attribute metadata programmatically.