Ensure Config Enforce Devel's form alter runs after Config Enforce's

Created on 16 April 2023, about 1 year ago
Updated 19 April 2023, about 1 year ago

Problem/Motivation

In πŸ› Plug-in based config not correctly identified on config forms (e.g. text editor/CKEditor) Needs review it was determined that plug-in based configs were not being correctly detected on their forms if Config Enforce Devel was installed, but were correctly detected if Config Enforce Devel was not installed, which led to determining that it was due to Config Enforce Devel's form alter running before Config Enforce's, not after as one would expect, which was caused by module weights.

Steps to reproduce

Ye can read, can ye?

Proposed resolution

Add config_enforce_devel.install with the contents:

/**
 * Implements \hook_install().
 */
function config_enforce_devel_install() {
  config_enforce_devel_update_81001();
}

/**
 * Increase module weight to run hooks after Config Enforce.
 */
function config_enforce_devel_update_81001(): void {
  module_set_weight('config_enforce_devel', 1001);
}

and run drush updb if it's already installed. Issue is now fixed.

Remaining tasks

See above.

User interface changes

None?

API changes

None.

Data model changes

None. None I think? None, let's say.

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada Ambient.Impact Toronto

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

Comments & Activities

Production build 0.69.0 2024