Phase 3: Backend Engineering & Automation (Week 3)
- SOLID Principles in Drupal: Writing testable, modular code.
- Services & Factories: Creating custom services to encapsulate business logic (keeping
.module files empty). - Automated Testing: Writing Kernel Tests and Unit Tests (PHPUnit) to verify your logic.
- Static Analysis: Implementing PHPCS and PHPStan to catch errors before you even run the code.
- Plugins Explained: Annotations vs. Attributes (Drupal 10/11 shift). Creating your own Plugin Managers.
- Hooks vs. Events: When to use
hook_ and when to Subscribe to an Event. - The Render API: Render arrays, cache bubbles, and
#lazy_builder. Understanding the pipeline from data to HTML.