yireo/magento2-easier-extension-attributes
Composer 安装命令:
composer require yireo/magento2-easier-extension-attributes
包简介
N/A
README 文档
README
This module tries to make implementing Magento 2 Extension Attributes easier by offering generic DI plugins that hook into various repositories.
Current features
- Creation of plugins for various entities (See
etc/di.xmlfor a listing of current repositories supported) - Saving simple Extension Attributes in the table of the original entity (by copying the Extension Attribute to a data property of the entity and vice versa)
Example
For an example implementation, see YireoTraining_EasierExtensionAttributesExample, more specifically its easier_extension_attributes.xml which complements the regular extension_attributes.xml. For extending the MSI Source entity, it adds a column example to the source database table, which is then automatically filled with the Yireo EasierExtensionAttributes module.
TODO
- Integration tests for
getList,saveandgetById - Integration tests for additional repositories
- Connect your own simple Extension Attribute with a separate table
- Connect your own Extension Attribute with a custom repository
- Connect your own complex Extension Attribute
- Try to merge
extension_attributes.xmlwitheasier_extension_attributes.xmlto cleanup code - Automatically add extension attributes to frontend and backend forms
统计信息
- 总下载量: 857
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2022-07-23