Drupal 11.1 introduces a new, object-oriented way of writing hooks. Instead of only procedural code, developers can now use PHP attributes inside classes, enabling autoloading, dependency injection, and better testability. This modern approach runs alongside the old system, giving developers cleaner, faster, and more flexible options without breaking backward compatibility.