Skip to content
Snippets Groups Projects
Forked from project / hook_event_dispatcher
Up to date with the upstream repository.
Luhur Abdi Rizal's avatar
Issue #3403379 by el7cosmos: Undefined method getViewMode in tests
Luhur Abdi Rizal authored
78518ffd
History

Description

This module dispatches events for several drupal core 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.

If you want to see new events registered, open an issue in the issue queue and we will try to add it. Hopefully, in the near future, Drupal core will put this into core.

Installation

To install this module, do the following:

With composer:

  1. composer require drupal/hook_event_dispatcher

Manual installation:

  1. Extract the tar ball that you downloaded from Drupal.org.
  2. Upload the entire directory and all its contents to your modules directory.

Examples

You can find an example on how to use each Event in src/Example