All hook invocation should be delegated to Module Handler service

Created on 20 December 2022, almost 2 years ago
Updated 26 January 2023, almost 2 years ago

Problem/Motivation

See https://www.drupal.org/node/3000490 . This change leads to an error when using Guardian in Drupal 10:

Error: Call to undefined method Drupal\Core\Extension\ModuleHandler::getImplementations() in Drupal\guardian\GuardianManager->getGuardedUsers()

Steps to reproduce

* Make a fresh Drupal 10 install
* Add the Guardian module
* Enable the Guardian module
* If you have enabled Guardian using Drush the error should already be visible in the CLI

Proposed resolution

Refactor according the the change record in https://www.drupal.org/node/3000490 .

Remaining tasks

  • Review MR
  • Merge MR

User interface changes

N/a

API changes

N/A

Data model changes

N/A

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇳🇱Netherlands ricovandevin

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024