3.2.0 Release - magento/magento2-phpstorm-plugin GitHub Wiki
What's new in Magento PHPStorm Plugin 3.2.0
This release contains code generators for a Magento Entity (entire CRUD infrastructure), code generation for email templates, navigation improvements in tests, and observers.
Code generation
Magento Entity (CRUD)
The new action for adding the whole infrastructure for CRUD.
Usage
- Create a new module e.g.
Vendor_MyModule
.
- Open the context menu (right-click to the module directory).
Click to
New -> Module File -> Magento 2 Entity
.
- Specify the Entity Name, DB table name, and ID field name. Select the
Create Admin UI Components
checkbox.
- Go to the
Admin UI Components
tab. Check whether all inputs are filled correctly.
- Go to the
ACL
tab. Check inputs here as well.
- Go to the
Menu
tab. Chose the correct parent menu and specify the sort order.
- Go to the
Properties
tab. Add needed properties (Entity ID added by default).
- Click the
Ok
button to get all files generated.
- Check files (e.g data interface)
- Run
php bin/magento setup:upgrade
. A new menu item should be accessible in the admin panel.
- Click on the menu item to get to the newly added listing.
- Click on the
Add New
button to get to the create/edit form.
- Specify data and save the entity
Your entity is ready for extension. Enjoy!
Email templates.
The new action for adding Email Template files from the context menu.
Reference navigation/completion
events.xml
.
Disabled observers in Line markers from a Test class to a Fixture file (integration and API functional tests)
Extra
Added ability to set the module sequence at generating a new module.
Bugfixes
- ArrayIndexOutOfBoundsException in the New Module Action.