DDEV

Creating tests for Drupal module Update Hooks

What is an Update Hook

When working on contributed Drupal modules, you sometimes need to make changes to schema or data structures.

This will generally need an update hook to make necessary changes to existing stored data on sites that installed the module before the change.

The update hook itself is generally simple enough. Here’s an example from the Smart Trim module, to update “read more” link settings on each display type:

Drupal Advent Calendar day 14 - DDEV

It’s day 14, and we’re wrapping up the second week with a big topic. Ryan Price (liberatr) joins us to talk about DDEV, the local development environment.

When you first boot up your computer and start working on a local copy of your site, what does that look like? Is it easy? Is it a chore? (please tell me you’re working locally if you’re doing any theme or module development)