Integrations
Dependencies on Store/Theme, usage by Catalog/Customer/CustomerAddress entities.
Dependencies on Store/Theme, usage by Catalog/Customer/CustomerAddress entities.
Magento_Eav has minimal dependencies, allowing it to serve as a core framework component that is consumed by many critical modules for their flexible attribute systems.
The following modules declare EAV as a dependency and use the EAV framework for entity management.
The largest EAV consumer. Products and categories use EAV for flexible attribute management.
Customer and address entities leverage EAV for customizable registration and account fields.
Extends EAV with swatch-based attribute rendering for configurable products (color, size swatches).
Uses EAV attributes as super attributes for product configuration and variation linking.
Indexes EAV attributes for search functionality and layered navigation.
Handles EAV data during product/customer import operations and CSV mapping.
Magento_Eav exposes service contracts for programmatic attribute management.
| Interface | Purpose | Key Methods |
|---|---|---|
| AttributeSetRepositoryInterface | Manage attribute sets | get(), save(), delete(), getList() |
| AttributeGroupRepositoryInterface | Manage attribute groups within sets | get(), save(), delete(), getList() |
| AttributeRepositoryInterface | Generic attribute repository | get(), getList() |
| AttributeSetManagementInterface | Create attribute sets from skeleton | create() |
| AttributeOptionManagementInterface | Manage attribute options | add(), delete(), getItems() |
| Method | Endpoint | Description |
|---|---|---|
| GET | /V1/eav/attribute-sets/list |
Retrieve list of attribute sets |
| GET | /V1/eav/attribute-sets/:id |
Retrieve attribute set by ID |
| POST | /V1/eav/attribute-sets |
Create new attribute set |
| PUT | /V1/eav/attribute-sets/:id |
Update attribute set |
| DELETE | /V1/eav/attribute-sets/:id |
Delete attribute set |
Magento_Eav provides multiple extension mechanisms for customization.
EAV data feeds into multiple indexers for frontend performance optimization.
| Indexer | EAV Data Used | Purpose |
|---|---|---|
| catalog_product_flat | Product EAV attributes | Denormalized product data for fast reads |
| catalog_category_flat | Category EAV attributes | Denormalized category data |
| catalogsearch_fulltext | Searchable attributes | Search engine indexing |
| catalog_product_attribute | Filterable attributes | Layered navigation filters |
Always interact with EAV through service contracts (repositories) to ensure proper event dispatch and plugin execution.
Attribute configuration is cached aggressively. Invalidate the EAV cache tag after programmatic attribute changes.
For high-read entities, implement flat table indexing. EAV is flexible but slow for complex queries.
For bulk updates, use EntityManager batch operations or direct SQL with proper cache invalidation.