Module Development

Discover Hooks and Their Documentation for Drupal 8, 9, and 10

To use a hook in a module, you'll need to know how to find the API documentation for the hook. The API documentation for a hook describes the hook's purpose, provides the function signature, and defines each of its parameters.

In this tutorial, we'll:

  • Explore methods for listing available hooks.
  • Guide you to the documentation for specific hooks.

By the end of this tutorial, you'll be able at find possible hooks for your task, and understand the documentation for a hook.

Drupal Module Developer Guide