Hands-on with Drupal configuration validation
This is a follow-up to my DrupalCon Pittsburgh talk. It does not provide an overview of the status nor the progress, but instead it’s hands-on, with 2 live demos to help attendees:
- use Config Inspector to find which config is still missing validation constraints, add it, and observe it catching invalid data — by adding 3 lines of YAML!
- update existing config forms to use validation constraints, including tweaking the validation error message — by adding 6 lines of YAML and copy/pasting 5 lines of PHP!
Each in less than 5 minutes, including the explanation!
In other words: everybody walked out ready to contribute to the DrupalCon sprints on the next day, or to update their own modules.
I’m honored to say that this was voted the 8th most interesting session at DrupalCon Lille!
Slides: SlidesVideo: YouTube recordingConference: DrupalCon LilleLocation: Lille, FranceDate: Oct 19 2023 - 17:15Duration: 20 minutesExtra information:
See https://events.drupal.org/lille2023/session/drupals-next-leap-configuration-validation.
- AttachmentSize
Original Article: