ModuleHandler::getImplementations() deprecated in D9

Created on 12 October 2023, over 1 year ago

Problem/Motivation

ModuleHandler::getImplementations() is deprecated in Drupal 9 and removed in Drupal 10. Clamav module crashes when it tries to run the hook implementations on Drupal 10.

php.ERROR: Error: Call to undefined method Drupal\Core\Extension\ModuleHandler::getImplementations() in Drupal\clamav\Scanner->isScannable() (line 120)

Steps to reproduce

Install Drupal 10 and turn on clamav module.

Proposed resolution

Use the known workaround pattern for the problem.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

🇦🇺Australia nterbogt

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

Comments & Activities

Production build 0.71.5 2024