We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug
generate entity:bundle-class command attempts to create hook_entity_bundle_info_alter() without checking if one exists already
generate entity:bundle-class
hook_entity_bundle_info_alter()
To Reproduce
Run generate entity:bundle-class twice for two different entities and check the .module file for generated hook implementations.
Expected behavior
Maybe append new lines to existing hook implementation?
Actual behavior
Duplicate hook implementation that leads to php fatal error
Workaround
Manually merge the two generated hook implementations.
The text was updated successfully, but these errors were encountered:
We dont try to append inside of existing functions so unfortunately this is the best we can do. See #4903 (comment)
Sorry, something went wrong.
No branches or pull requests
Describe the bug
generate entity:bundle-class
command attempts to createhook_entity_bundle_info_alter()
without checking if one exists alreadyTo Reproduce
Run generate entity:bundle-class twice for two different entities and check the .module file for generated hook implementations.
Expected behavior
Maybe append new lines to existing hook implementation?
Actual behavior
Duplicate hook implementation that leads to php fatal error
Workaround
Manually merge the two generated hook implementations.
System Configuration
Additional information
The text was updated successfully, but these errors were encountered: