OOP, Design Patterns and Drupal 8
summary
A custom Drupal 8 module lives on GitHub that actually runs the slide demo and uses two services defined in services.yml, a presentation manager service (interface + class) injected into controllers and blocks, a table-of-contents trait reused by block and controller, routing YAML for paths, a libraries.yml JavaScript asset attached via a Twig template (hook_theme used), and dependency injection everywhere; the module builds the table of contents, next/previous links and thumbnails and works in the live demo.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 0:22Target audience and scope
- 5:57Modern Drupal 8 development
- 10:57Understanding services
- 14:45Interfaces and contracts
- 19:03Class structure and inheritance
- 23:27Abstract classes
- 30:58PHP traits
- 36:02Annotations and plugins
- 40:32Dependency injection
- 50:37Routing in Drupal 8
- 53:05Asset management and libraries
- 55:33Hooks, twig, and debugging
