Drupal 11 compatibility

Created on 8 May 2025, 1 day ago

Problem/Motivation

On a new project, we're using CE/CED on Drupal 11. There are a number of fixes in other tickets (list TBD), but also some miscellaneous deprecation warnings and such that we can address directly here.

These include:

  1. - A deprecation warnings re. dynamic class properties; eg:
    Deprecated function: Creation of dynamic property Drupal\config_enforce_devel\TargetModuleInstaller::$connection is deprecated in Drupal\config_enforce_devel\TargetModuleInstaller->updateKernel()
  2. - A missing form/config method (fixed by switching to `ConfigFormBase`):
    TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, class Drupal\config_enforce_devel\Form\EnforcedConfigs does not have a method "loadDefaultValuesFromConfig" in call_user_func_array() (line 1010 of core/lib/Drupal/Core/Form/FormBuilder.php).
  3. - Target module template is not compatible with Drupal 11.

Proposed resolution

Fixes for these issue are pretty simple. Patch incoming.

Remaining tasks

TBD

User interface changes

N/A

API changes

TBD

Data model changes

N/A

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇨🇦Canada ergonlogic Montréal, Québec 🇨🇦

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

Comments & Activities

Production build 0.71.5 2024