Module Development

Concept: Update Hooks for Drupal 8, 9, 10, and 11

Update hooks in Drupal are used for executing database updates or applying configuration changes during module updates. They ensure these changes occur once and in the correct order.

In this tutorial, we'll:

  • Explore the purpose of update hooks.
  • Learn how to implement update hooks for database updates or configuration changes.

By the end of this tutorial, you should be able to understand the use case for update hooks and know how to get started implementing one.

Drupal Module Developer Guide