Rule Your Platform: Leveraging Drupal's Conditions API for Modular Site Control
summary
Drupal’s Conditions API becomes a platform control plane: used to keep one shared configbase for ~40–50 Iowa marketing sites while enabling per-site differences (product taxonomy, a location certification date, custom layout styles, unique views) without config splits. Built and released modules include entity type access conditions, field visibility conditions, views- and layout-style condition plugins and a shared conditions helper. A PHP 8.1 enum-based static settings API auto-generates condition forms, exports as third-party settings, and works in production flows (Pantheon, Tugboat), and the demos (day‑of‑week, domain switching) validate the approach.
AI-written summary · about
chapters (14)
- 0:00Introduction and speaker background
- 1:06About Labot and Drupal platform
- 3:58What are Drupal conditions API
- 6:12Where conditions are used in Drupal
- 6:54State of Iowa marketing platform overview
- 10:08Custom condition modules created
- 13:56Conditions helper module explained
- 15:20Static settings and context modules
- 17:47Automating conditions with enums
- 20:36Live demo of domain-based conditions
- 22:00Field visibility and view access conditions
- 25:13Custom condition logic examples
- 27:03Benefits for multi-site platforms
- 27:46Q&A on feature flags and conditions
