Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Updated: Comment #N
Problem/Motivation
#1890784: Refactor configuration import and sync functions introduced the event 'config.installer.validate' also both dispatcher and listener. In #2095489: Separate out module install config code from import code the event dispatcher has been removed (ConfigInstaller.php file was removed) and it did not return with #2166065: Replace config_install_default_config with ConfigInstaller service.
Proposed resolution
Remove the event lister 'config.installer.validate'.
Remaining tasks
Get confirmation that the event dispatchers are no longer required.
Make the patch.
User interface changes
none
API changes
none
Comment | File | Size | Author |
---|---|---|---|
#4 | config-remove-event-listeners-2177689-4.patch | 649 bytes | Sutharsan |
Comments
Comment #1
Sutharsan CreditAttribution: Sutharsan commentedNo confirmation yet if the events are really deprecated, but let's see what this patch does.
Comment #2
Gábor Hojtsy#2172561: Config overrides may spill over to undesired places also removes the global override subscriber (and is RTBC). That is indeed left around and ConfigFactory now does all that directly. I'm not at all sure about the config import subscriber though :/ Settings needs work since the global removal is duplicate.
Comment #3
alexpottThis should be left in as the config.importer.validate event still fires. However the config.installer.validate does not occur anymore.
Comment #4
Sutharsan CreditAttribution: Sutharsan commentedSo the only event handler to remove is 'config.installer.validate'.
No interdiff as the remaining patch is minimal now.
Comment #5
Gábor Hojtsy#2172561: Config overrides may spill over to undesired places will remove the global override listener (unused). Alex Pott confirmed about the updated patch is fine. So let's do this.
Comment #6
alexpottCommitted 93206c3 and pushed to 8.x. Thanks!