Drupal 11.1 now supports implementing hooks as class methods using PHP attributes, offering improved code organization, dependency injection, and testability. An article by Joe Shindelar, published by Drupalize.Me, details this update, its impact on Drupal’s development practices, and the updated tutorials reflecting this change.
...more