Closed
Description
Is your feature request related to a problem? Please describe.
We should add layout xml file generation to the context actions, so that we can generate a layout xml file wherever it can be generated depending on the clicked file or directory.
Input from the user:
- filename
- layout type (1column, 2columns-left, 2columns-right, 3columns, empty, admin-empty, admin-1column, admin-2columns-left + custom layouts) based on the area context
The original idea came from the #861.
Describe the solution you'd like (*)
We have developed a new context dependent actions group in the #958.
To add new file generation action that depends on context:
- create an action class that extends
com.magento.idea.magento2plugin.actions.context.AbstractContextAction
- register it in the plugin.xml file inside the MagentoContextBasedActionsGroup group
- implement the isVisible method to define condition where to show this action
- implement the getProperties method to specify properties that should be auto-populated from the known context (leave empty for user-defined values)
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Mainline branch: 4.3.0-develop