magento2-module magento2-example-complex-extension-attributes
Example module demonstrating usage of extension attributes (and tests)
yireo-training/magento2-example-complex-extension-attributes
Example module demonstrating usage of extension attributes (and tests)
- Thursday, July 5, 2018
- by yireo-training
- Repository
- 2 Watchers
- 3 Stars
- 3 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
Example Complex Extension Attributes
An example of how to create Extension Attributes. The file extension_attributes.xml
lists a new attribute that refers to an Extension Attribute interface (and class, through a preference). Next, a Plugin is used to add the attribute to the repository input and output. Values are stored in a separate table (see the Setup class). There is a CLI command as a proof of concept., (*1)
The "listing" CLI task also shows the workings of a JOIN when collecting lists through a repository., (*2)
Installation
composer require yireo-training/magento2-example-complex-extension-attributes:dev-master
dev-master
9999999-dev
Example module demonstrating usage of extension attributes (and tests)
Sources
Download
OSL-3.0
The Requires
-
magento/framework *
-
magento/module-store ^100.1|^101.0|^102.0
-
php >=7.0.0
The Development Requires
by
Jisse Reitsma (Yireo)
composer-installer
magento