Hooks, from magic names to php language feature

20:32 · 14 Oct 2025 – 17 Oct 2025 · YouTube

About this talk

In this talk, Fabian Bircher and Sally Young explore the evolution of extending Drupal, specifically in the transition to Drupal 11. They explain how traditional methods of using magic names for hooks have transformed into a more organized approach using PHP attributes and plugin systems. The speakers emphasize that in Drupal 11.1, the design allows developers to implement hooks as methods on classes, which enhances code organization and testing capabilities through dependency injection. They aim to demonstrate that adapting to this object-oriented way of defining hooks is both straightforward and beneficial for developers at any experience level.

From event

DrupalCon Vienna 2025

14 Oct 2025 – 17 Oct 2025

All event videos
Back to Watch