Compatibility issue with Drupal 11.1.0

Created on 9 January 2025, 3 months ago

Problem/Motivation

After upgrading to Drupal 11 the following error occurs:

Drupal\Core\DependencyInjection\ContainerNotInitializedException: \Drupal::$container is not initialized yet. \Drupal::setContainer() must be called with a real container. in Drupal::getContainer() (line 169 of core/lib/Drupal.php).

Breaking changes introduced in https://www.drupal.org/node/3442349 cause this error.
Since hook_module_implements_alter is called during build time, it does not support service calls. Also, dynamic ordering in general is extremely unlikely to be supported in the future.

Steps to reproduce

Install the module on Drupal 11.1

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.2

Component

Code

Created by

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024