Plugins & Observers
DI preferences, cache invalidation plugins, backend/frontend/source model patterns.
DI preferences, cache invalidation plugins, backend/frontend/source model patterns.
The EAV module defines preferences to bind interfaces to concrete implementations for the attribute system.
| Interface | Implementation |
|---|---|
| AttributeRepositoryInterface | Magento\Eav\Model\AttributeRepository |
| AttributeSetRepositoryInterface | Magento\Eav\Model\AttributeSetRepository |
| AttributeSetManagementInterface | Magento\Eav\Model\AttributeSetManagement |
| AttributeGroupRepositoryInterface | Magento\Eav\Model\Attribute\GroupRepository |
| AttributeManagementInterface | Magento\Eav\Model\AttributeManagement |
| AttributeOptionManagementInterface | Magento\Eav\Model\Entity\Attribute\OptionManagement |
| AttributeOptionUpdateInterface | Magento\Eav\Model\Entity\Attribute\OptionManagement |
| Interface | Implementation |
|---|---|
| Data\AttributeInterface | Magento\Eav\Model\Entity\Attribute |
| Data\AttributeSetInterface | Magento\Eav\Model\Entity\Attribute\Set |
| Data\AttributeGroupInterface | Magento\Eav\Model\Entity\Attribute\Group |
| Data\AttributeOptionInterface | Magento\Eav\Model\Entity\Attribute\Option |
| Data\AttributeOptionLabelInterface | Magento\Eav\Model\Entity\Attribute\OptionLabel |
| Data\AttributeFrontendLabelInterface | Magento\Eav\Model\Entity\Attribute\FrontendLabel |
| Interface | Implementation |
|---|---|
| PropertyMapperInterface | Magento\Eav\Model\Entity\Setup\PropertyMapper\Composite |
| AttributeLoaderInterface | Magento\Eav\Model\Entity\AttributeLoader |
| UniqueValidationInterface | Magento\Eav\Model\Entity\Attribute\UniqueValidator |
| ReservedAttributeCheckerInterface | Magento\Eav\Model\ReservedAttributeChecker |
| CustomAttributeTypeLocatorInterface | Magento\Eav\Model\TypeLocator |
The EAV module defines plugins for caching and cache invalidation.
Caches store-scoped attribute labels after loading to avoid repeated database queries.
Invalidates cache tags when EAV entities are saved or deleted to ensure cache consistency.
EAV defines virtual types for search criteria processing and collection filtering.
EAV attributes use model patterns for validation, display, and option handling.
EAV integrates with the EntityManager framework for CRUD operations.