magento / magento/magento2-phpstorm-plugin
[Complex-Generation] Override template in a module
Open
@SilinMykola is already working on this.
Since Sep 20, 2022.
code generation
- Dominant language
- Java
- Stars
- 463
- Forks
- 98
- Avg merge
- 1h 6m
- Merged PRs (30d)
- 3
Description
Is your feature request related to a problem? Please describe.
We should add an ability to override *.phtml template in a module. Now we can only override it in a custom theme.
Describe the solution you'd like (*)
Add a new context action similar to Override this file in a project theme.
Acceptance Criteria:
- a new action added
- it is showed only for *.phtml templates that can be overridden in the module
- target generator added or used an existed
- test coverage added if new generator is created
- new reference block record is injected into the target module (layout file created or updated if it already exists)
- user can choose template overriding option: https://developer.adobe.com/commerce/frontend-core/guide/layouts/xml-manage/#set-the-template-used-by-a-bloc
- user can optionally inject a new view model in the block (use existing functionality)
Additional context
Mainline branch: 4.5.0-develop
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.