Use of ModuleHandler::invokeAllWith() breaks Drupal with core < D9.4

Created on 1 June 2023, over 1 year ago
Updated 27 September 2023, about 1 year ago

Problem/Motivation

The Reroute Email in latest release 2.2.0 is not compatible with Drupal core older than 9.4 because of All hook invocation delegated to Module Handler service β†’

  • Change module handler method from getImplementations to invokeAllWith

In settings form of this module get an error:

PHP message: Error: Call to undefined method Drupal\\Core\\Extension\\ModuleHandler::invokeAllWith() in /var/www/html/modules/contrib/reroute_email/src/Form/SettingsForm.php on line 225

Proposed resolution

Increase the minimum requirement to 9.4 | 10 in version 2.2.x

πŸ› Bug report
Status

Fixed

Version

2.2

Component

Code

Created by

πŸ‡΅πŸ‡±Poland sebaz

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

Comments & Activities

Production build 0.71.5 2024