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

Comments

ergonlogic created an issue. See original summary.

ergonlogic’s picture

At least some of these appear to already be fixed in 1.0.x. We should cut a new release.

ergonlogic’s picture

ergonlogic’s picture

star-szr’s picture

Title: Drupal 11 compatibility » Drupal 11 compatibility for config_enforce_devel

Re-titling to make it easier to tell this apart from #3522987: Drupal 11 compatibility for config_enforce.

  • star-szr committed 9f1ec81b on drupal11-compat authored by ergonlogic
    Issue #3523422 by ergonlogic, star-szr: Fix core dependencies.
    

  • star-szr committed 8aeeb175 on drupal11-compat authored by ergonlogic
    Issue #3523422 by ergonlogic, star-szr: Fix missing form method.
    

  • star-szr committed 8cba5600 on drupal11-compat authored by ergonlogic
    Issue #3523422 by ergonlogic, star-szr: Make target module template...
star-szr’s picture

Needs more work but starting a new MR to track this work: https://git.drupalcode.org/project/config_enforce_devel/-/merge_requests/35

  • star-szr committed 19c3a5d1 on drupal11-compat authored by ergonlogic
    [#3523422] fix: Update core version requirements
    
    By: ergonlogic
    By:...

  • star-szr committed 6bdec131 on drupal11-compat authored by ergonlogic
    [#3523422] fix: Update EnforcedConfigs class inheritance
    
    Inheriting...

  • star-szr committed c6a50785 on drupal11-compat authored by ergonlogic
    [#3523422] fix: Make target module template compatible with Drupal 11...

  • star-szr committed 19c3a5d1 on 2.0.x authored by ergonlogic
    [#3523422] fix: Update core version requirements
    
    By: ergonlogic
    By:...

  • star-szr committed 6bdec131 on 2.0.x authored by ergonlogic
    [#3523422] fix: Update EnforcedConfigs class inheritance
    
    Inheriting...

  • star-szr committed c6a50785 on 2.0.x authored by ergonlogic
    [#3523422] fix: Make target module template compatible with Drupal 11...

  • star-szr committed ba9dbb3c on 2.0.x
    [#3523422] fix: Remove version from library declaration
    
    As of Drupal 10...
star-szr’s picture

Version: 1.0.x-dev » 2.0.x-dev
Assigned: ergonlogic » Unassigned
Category: Feature request » Task
Status: Active » Fixed

These changes have been committed to 2.0.x, closing.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.