Altering, Extending, and Enhancing Drupal 8
summary
Explains how Drupal 8 actually lets modules extend core: plugins use annotated class discovery with base classes and well‑documented interfaces for blocks and fields; services via dependency injection registered in services.yml and designed for one active implementation (easy to swap and test); events use the Symfony event dispatcher for subscribe/dispatch patterns; and hooks still common for form_alter and other in‑place mutations, with practical recipes, discovery tips, and a note that events add overhead compared to hooks.
AI-written summary · about
chapters (16)
- 0:00Intro
- 1:24Hi, I'm Joe @eojthebrave
- 17:13Examples of Plugins
- 18:07Plugin Recipe
- 22:06Plugin Types Recipe
- 24:04Plugin Resources
- 29:24Examples of Services
- 31:33Service Recipe
- 34:07Service Resources
- 42:11Events Recipe - Dispatch
- 44:26Events Resources
- 47:21Examples of Hooks
- 48:52Hooks Recipe - Implement
- 51:11Hooks Recipe - Invoke
- 53:18Hooks Resources
- 57:57Recap
