This module dispatches events for Drupal core and module hooks, allowing developers to use the event subscriber system instead of the older hook system. It provides events for common hooks and encourages contributions for additional events.
This module dispatches events for several Drupal core and module hooks. This allows you to use the Drupal Event Subscriber system, instead of the outdated hook system, to react on certain events. The module includes events for the most common hooks.
Currently this module dispatches events for lots of hooks, just look in the code. If you want to see new events registered, open an issue in the issue queue with patch and we will try to add it. Hopefully, in the future, this will be in Drupal core.
Examples
The directory contains some examples on how to subscribe to certain events.
Recommended modules
Ask your assistant about Hook Event Dispatcher
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
6 tracked projects depend on this one
- Libraries provider 80 sites
- BEE Hotel 11 sites
- Inline Entity Form Event Dispatcher 5 sites
- Crocheteer 4 sites
- Trash Event Dispatcher 2 sites
- Taxonomy Scheduler
Activity
Release Timeline
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 4.0.0-alpha2 | Pre-release | 9–10 | PHP >=8.1.0 | Feb 27, 2023 | |
| 3.3.2 | Stable | 9 | Feb 27, 2023 | ||
| 4.0.0-alpha1 | Pre-release | 9–10 | PHP >=8.1.0 | Feb 27, 2023 |