Drupal-8-user-register-hook Page
[Solved] How to hook into Commerce after payment complete - Drupal
Do you need help on the registration form, or are you looking to redirect users after they sign up? drupal-8-user-register-hook
To hook into the user registration process in Drupal 8 (and 9/10+), you typically use entity hooks since users are treated as content entities. 🛠️ Recommended Hooks [Solved] How to hook into Commerce after payment
This is the standard approach to identify a vs. an existing user being updated. checking an external blacklist)
Best for modifying data (e.g., adding a default role) before it hits the database. Runs after the user is created.
If you need to stop registration based on custom business logic (e.g., checking an external blacklist), use a custom validation handler via hook_form_alter .
