Call to undefined method Drupal\Core\Extension\ModuleHandler::getImplementations()

Created on 11 August 2023, 11 months ago
Updated 30 August 2023, 10 months ago

Problem/Motivation

I got this error for the Drupal 10 and php 8.1

NOTICE: PHP message: Uncaught PHP Exception Error: "Call to undefined method Drupal\Core\Extension\ModuleHandler::getImplementations()" at /var/www/html/web/modules/contrib/hook_event_dispatcher/src/HookEventDispatcherModuleHandlerProxyTrait.php line 114

CR: https://www.drupal.org/node/3000490 โ†’

Proposed resolution

We should remove the method getImplementations() from HookEventDispatcherModuleHandlerProxyTrait.php

 /**
   * {@inheritdoc}
   */
  public function getImplementations($hook) {
    return $this->inner->getImplementations($hook);
  }
๐Ÿ› Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

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

Comments & Activities

Production build 0.69.0 2024