OOP, Design Patterns and Drupal 8
summary
A custom Drupal 8 module on GitHub implements a presentation_manager service that builds a table of contents, provides getPrevious/getNext slide methods, and powers two configurable blocks (one a context-aware plugin that pulls node images) using dependency injection against the entity_type.manager interface. Routing files map URLs to controller methods (one loaded into the modal API), a table of contents trait lets a controller and block share build logic, libraries YAML loads a small JS, and Twig template suggestions attach the library — everything runs in the demo.
AI-written summary · about
chapters (30)
- 0:00Start
- 3:43Design Patterns
- 6:29Organizational Structure
- 6:57Services
- 8:57Presentation Manager Service
- 9:12Create Table of Contents Method
- 9:35Configurable Blocks
- 13:32Classes
- 15:37Abstract Classes
- 16:53List Item Base
- 17:29Get Possible Values Method
- 18:01Abstract Method
- 18:45Abstract Methods
- 21:33Single Inheritance
- 23:06Build Method
- 25:17Annotations
- 25:41Annotation Parser
- 26:09Annotation
- 27:10Get Context Value
- 27:42Depends Injection
- 28:00Types of Dependency Injection
- 28:39Dependency Injection
- 30:01Interfaces
- 31:12Controller
- 33:46The Container Factory Plug-In Interface
- 34:39Routing
- 36:39Libraries
- 38:51Hook Theme
- 39:09Template Suggestions
- 41:30Twig Debugging
related talks
33mOOP - The Pokemon Journey
55mHexagonal Architecture in Drupal: How to Build a Product Using DDD
21mDrupal 8 BOGOFs: A Hitchhiker's Guide to Less Popular Symfony Components
32mModular Architecture with Symfony and Its Ecosystem...
13mKeynote: Frappe Framework
35mBuilding Modular Architectures
50mSpring for the architecturally curious developer
01h 24mA new modularity for software
