Problem/Motivation

ModuleHandlerInterface::getImplementations() is deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. Instead you should use ModuleHandlerInterface::invokeAllWith() for hook invocations, or you should use ModuleHandlerInterface::hasImplementations() to determine if hooks implementations exist.

ModuleHandlerInterface::implementsHook() is deprecated in drupal:9.4.0 and is removed from drupal:10.0.0. Instead you should use ModuleHandlerInterface::hasImplementations()  with the $modules argument.

Steps to reproduce

Proposed resolution

Remove all references from Drupal 10.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

CommentFileSizeAuthor
#2 3293075-2.patch5.36 KBlongwave
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

longwave created an issue. See original summary.

longwave’s picture

Status: Active » Needs review
FileSize
5.36 KB
catch’s picture

Status: Needs review » Reviewed & tested by the community

Looks great!

longwave’s picture

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed fbc8bd2d01 to 10.1.x and 356d019201 to 10.0.x. Thanks!

  • alexpott committed fbc8bd2 on 10.1.x
    Issue #3293075 by longwave: Remove deprecated code from...

  • alexpott committed 356d019 on 10.0.x
    Issue #3293075 by longwave: Remove deprecated code from...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.