Drupal 10 compatibility for entity_reference_integrity_enforce

Created on 9 August 2023, over 1 year ago
Updated 30 November 2023, about 1 year ago

Problem/Motivation

When using upgrade_status to scan a website with the entity_reference_integrity_enforce module installed, you'll get the next result:

Entity Reference Integrity 8.x-1.2
Scanned on wo, 08/09/2023 - 16:02.

1 error found.

web/modules/contrib/entity_reference_integrity/modules/entity_reference_integrit
y_enforce/tests/src/Kernel/EntityPredeleteHookTest.php:
┌─────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS  │ LINE │                           MESSAGE                            │
├─────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Fix now │ 40   │ Call to deprecated method getImplementations() of class      │
│         │      │ Drupal\Core\Extension\ModuleHandlerInterface. 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.                                 │
│         │      │                                                              │
└─────────┴──────┴──────────────────────────────────────────────────────────────┘

Steps to reproduce

Run upgrade_status scan on a website with the module entity_reference_integrity_enforce enabled.

Proposed resolution

Change the code in testHookWeightLegacy to comply for Drupal 10

Remaining tasks

Provide a MR with the changed code.

User interface changes

-

API changes

-

Data model changes

-

📌 Task
Status

Needs review

Version

1.0

Component

Code

Created by

🇧🇪Belgium tim-diels Belgium 🇧🇪

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

Comments & Activities

Production build 0.71.5 2024