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
Issue fork webform_simplify-3498357
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
Comment #4
dieterholvoet commentedComment #6
dieterholvoet commented