Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ generate:plugin ] Provide option to create twig template #3467

Closed
andileco opened this issue Aug 1, 2017 · 2 comments · Fixed by #4107
Closed

[ generate:plugin ] Provide option to create twig template #3467

andileco opened this issue Aug 1, 2017 · 2 comments · Fixed by #4107

Comments

@andileco
Copy link

andileco commented Aug 1, 2017

Problem/Motivation

Frequently plugins such as blocks or views require a twig template, but it can be a little difficult to know where to put the template file and what to name it. When generating a module, Drupal Console asks about a twig template; why not also make this available when generating a plugin?

Solution

I would think this could be done the way it is for generating a module template (where the user is asked during the generate:plugin command). However, I could alternatively see a separate command like generate:plugin:template or generate:plugin:twig being useful if adding a question during generate:plugin is too burdensome.

@andileco andileco changed the title [ template ] For generate:plugin, provide option to create twig template [ generate:plugin ] Provide option to create twig template Aug 1, 2017
@lfjimenez
Copy link

@andileco do you have an update about this subject ?

@andileco
Copy link
Author

No, I haven't heard any update. But still think it could be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants