Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a bunch of D7 code that works with classes. I know hooks cannot be invoked when they contain logic, such as class instantiations. Should I keep on trying to convert the other code, which relies on classes and the registry, or won't that work?