Call to deprecated method implementsHook()

Created on 12 October 2023, about 1 year ago
Updated 16 October 2023, about 1 year ago

Problem/Motivation

During a random D10 compatibility check of a project I noticed the following.

Call to deprecated method implementsHook() of class Drupal\Core\Extension\ModuleHandlerInterface. Deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. Use the hasImplementations() methods instead with the $modules argument.

Steps to reproduce

Run upgrade status over the module

Proposed resolution

Fix the deprecation

Remaining tasks

Create MR

🐛 Bug report
Status

Closed: duplicate

Component

Code

Created by

🇧🇪Belgium BramDriesen Belgium 🇧🇪

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

Comments & Activities

  • Issue created by @BramDriesen
  • 🇨🇦Canada optasy

    I tested against a D10 instance and I don't see this issue myself, but I see other issues with the info.yml file.

  • 🇨🇷Costa Rica yuvania

    https://www.drupal.org/project/ultimate_cron/issues/3394314#comment-1527... 🐛 Deprecated method implementsHook() Active In this issue, I added a patch that fixes it!

  • Status changed to Closed: duplicate about 1 year ago
  • 🇨🇭Switzerland berdir Switzerland

    I'll comment in the other issue as well, closing this as a duplicate, but it's not a problem, if you actually look at the implementation you can see it's inside a conditional check for the new API, this is only there for backwards compatibility with older Drupal 9 versions.

Production build 0.71.5 2024