Open
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