-
-
Notifications
You must be signed in to change notification settings - Fork 557
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:views:field] overwrites <module-name>.views.inc #3882
Comments
@com2 I have checked the version 1.8.0 (the latest one). We append code to [module].view.inc file the code each time the command [generate:plugin:views:field] is executed.
and normally then you need to merge it manually. Anyway, I think it would be nice to have opportunity to add multiple fields |
@com2 I didn't mention that if you have already views data hook implemented, we have a check and it will show the warning
|
pr - #3883 |
Thanks @LOBsTerr |
Problem/Motivation
After using generate:plugin:views:field to generate the first, I wanted also to add a second field. Apparently this is not supported because I saw in modules/custom/my_module/my_module.views.inc only the last field defined. As Drupal 8 beginner I am not sure if I am right, but I think it should append a second field in stead of overwriting the previous. Or at least it could politely give a warning that a second field is not supported.
How to reproduce
Generate a module and then two views field plugins:
Details:
The text was updated successfully, but these errors were encountered: