ModuleHandler error after upgrading Hook Event Dispatcher

Created on 11 October 2022, about 2 years ago
Updated 17 October 2023, about 1 year ago

Problem/Motivation

This module should use ModuleHandlerInterface instead of ModuleHandler to avoid issues with other modules.

<!--break-->

When using the Hook Event Dispatcher module after 3.2.0, the settings page for CKEditor Media Embed Plugin returns this error:

TypeError: Argument 2 passed to Drupal\ckeditor_media_embed\Form\CKEditorMediaEmbedSettingsForm::__construct() must be an instance of Drupal\Core\Extension\ModuleHandler, instance of Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler given, called in /app/web/modules/contrib/ckeditor_media_embed/src/Form/CKEditorMediaEmbedSettingsForm.php on line 73 in Drupal\ckeditor_media_embed\Form\CKEditorMediaEmbedSettingsForm->__construct() (line 57 of /app/web/modules/contrib/ckeditor_media_embed/src/Form/CKEditorMediaEmbedSettingsForm.php)

See the hook_event_dispatcher release notes .

Proposed resolution

Type hint ModuleHandlerInterface instead of ModuleHandler.

🐛 Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

🇧🇪Belgium pieter-e1

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024