Log in
Model

ComplexType

Magento\Eav\Model\TypeLocator\ComplexType

What it does

This class determines the data type of EAV custom attributes for API/web service operations.

Developers use it when working with custom attributes to map backend models to their corresponding complex data types (interfaces) for proper serialization and validation in web APIs.

It automatically resolves attribute types based on backend models or derives them from frontend input types when backend models are empty.

Public Methods

  • getType()
  • getDataTypes()
  • getAllServiceDataInterfaces()