Error: Call to undefined method Drupal\Core\Extension\ModuleHandler::getImplementations() in Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler->getImplementations() (line 114 of modules/contrib/hook_event_dispatcher/src/HookEventDispatcherModu

Created on 14 February 2023, about 2 years ago
Updated 11 April 2023, almost 2 years ago

Problem/Motivation

Error: Call to undefined method Drupal\Core\Extension\ModuleHandler::getImplementations() in Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler->getImplementations() (line 114 of modules/contrib/hook_event_dispatcher/src/HookEventDispatcherModuleHandlerProxyTrait.php).

Steps to reproduce

Working on Drupal 10 updates.

Proposed resolution

getImplementations() has been deprecated in D9 and removed from D10. https://www.drupal.org/node/3000490
Since this doesn't appear to be used but is just being carried forward from the moduleHandler I am just removing it from HookEventDispatcherModuleHandlerProxyTrait.php

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: works as designed

Version

4.0

Component

Code

Created by

🇺🇸United States edmund.dunn Olympia, WA

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

Comments & Activities

  • Issue created by @edmund.dunn
  • 🇺🇸United States edmund.dunn Olympia, WA

    Attaching patch.

  • Status changed to Closed: works as designed almost 2 years ago
  • 🇮🇩Indonesia el7cosmos 🇮🇩 GMT+7

    Removing getImplementations() method will break in D9, since the 4.x branch still supports D9.

    There is a good chance the errors happened because another module called the method, then the other module should fix it.

Production build 0.71.5 2024