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

drush gen hook is producing deprecated procedural code instead of a Hook class. #6175

Open
olstjos opened this issue Dec 4, 2024 · 1 comment

Comments

@olstjos
Copy link

olstjos commented Dec 4, 2024

Convert all procedural hook implementations to Hook classes

Is now merged into drupal core

Screenshot of drush gen hook when using Drupal 10.3.6 and also occurs with Drupal 11 and Drush Commandline Tool 13.3.3.0

drush gen hook

Describe the solution you'd like
drush gen hook should generate OOP hook classes compatible with Drupal 11.

Describe alternatives you've considered
Creating hooks manually.

Additional context
Spun from [#3483599]

@weitzman
Copy link
Member

weitzman commented Dec 4, 2024

Thats not in this project but is in a dependency - Chi-teck/drupal-code-generator#194.

Leaving open to discourage other dupes.

@olstjos olstjos changed the title drush gen hook is producing deprecated procedural code instead of a Hook classe. drush gen hook is producing deprecated procedural code instead of a Hook class. Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants