Running Drupal 7 code in Drupal 10
summary
Claims that Retrofit for Drupal runs real Drupal 7 modules inside Drupal 10 by providing a compatibility layer that maps D7 hooks to D10 plugins, with demos of template_field demo and patched CTools. Work involves composer/PSR‑4 autoloading, a bootstrap service provider, ArrayAccess wrappers for FormState, and derivative-based field mapping; tests require PHP CS, PHPStan and PHPUnit. Retrofit already runs on an Estée Lauder site and handles most fields, blocks and theme templates, though some class namespacing and minor fixes remain.
AI-written summary · about
chapters (12)
- 0:00Introduction to Retrofit
- 1:04Why Drupal 7 still matters
- 3:09Demo: Template Field module
- 8:04Q&A on C Tools compatibility
- 12:08Retrofit’s core mechanics
- 26:20How Retrofit works under the hood
- 31:40Field and block support
- 35:39Migration workflow with Retrofit
- 37:26Testing and contributing
- 43:55Future of Retrofit and automation
- 47:06Contributing to Retrofit or modules
- 51:02Q&A and closing
