OOP - The Pokemon Journey
summary
Begins as a Pokemon-themed walkthrough that maps concrete PHP OOP constructs to examples and Drupal 8 code: shows class properties, constructors, visibility, TranslatableMarkup from core, inheritance with extends and abstract widget base, interfaces implemented by form classes, and reuse via StringTranslationTrait. Demonstrates building a custom annotated block plugin, explains services and swapping the current_user service or an email validator, and implements dependency injection with a constructor and create() container method. Code examples are runnable pseudocode tied to D8 core classes.
AI-written summary · about
chapters (10)
- 0:00Introduction to OOP
- 1:04Classes and objects
- 5:40Inheritance in Pokemon
- 9:15Gym battles and weaknesses
- 15:41Interfaces for Pokemon
- 16:01Traits for evolution
- 18:09Plugins for badges
- 21:57Services for trainer stats
- 24:27Dependency injection
- 30:30Summary and resources
related talks
15mAdventures in OOP (Object Oriented Programming)
36mAn Introduction to OOP, Design Patterns, and TDD
01h 03mDemystifying Object Oriented Programming
44mOOP, Design Patterns and Drupal 8
42mBeyond OOP: Developing PHP Extensions ... in PHP!
19mHow I learn good programming by learning Drupal
41mDrupal 8 Module Development
26mMarcel Pociot :: Parsing PHP for Fun...and Profit
