Drupal 10 compatibility for entity_reference_integrity_enforce

Created on 9 August 2023, 11 months ago
Updated 30 November 2023, 7 months 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.69.0 2024