drush icon indicating copy to clipboard operation
drush copied to clipboard

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

Open olstjos opened this issue 1 year ago • 1 comments

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]

olstjos avatar Dec 04 '24 23:12 olstjos

Thats not in this project but is in a dependency - https://github.com/Chi-teck/drupal-code-generator/issues/194.

Leaving open to discourage other dupes.

weitzman avatar Dec 04 '24 23:12 weitzman