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

  • Create MR
  • Review MR
  • Merge MR

User interface changes

N/a

API changes

N/A

Data model changes

N/A

Issue fork guardian-3328237

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ricovandevin created an issue. See original summary.

ricovandevin’s picture

Issue summary: View changes
Status: Active » Needs review

This change might not be fully in accordance with https://www.drupal.org/node/3000490. But at least it makes the code work with Drupal 10.

idebr made their first commit to this issue’s fork.

idebr’s picture

  • idebr committed b7d0ac91 on 2.x authored by ricovandevin
    Issue #3328237 by ricovandevin, idebr: All hook invocation should be...
idebr’s picture

Status: Needs review » Fixed

Added test coverage and committed, thanks!

This issue will be released in 2.1.0 shortly.

Status: Fixed » Closed (fixed)

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