Add ConfigImporter to \Drupal\Core\Config\Importer\MissingContentEvent

Created on 16 January 2024, 11 months ago
Updated 3 July 2024, 6 months ago

Problem/Motivation

Other events triggered by the ConfigImporter has the ConfigImporter object attached to allow listeners to react to the changes it is making. For example, \Drupal\Core\Config\ConfigEvents::IMPORT has it which allows \Drupal\default_content\Config\DefaultContentConfigSubscriber to install default content from modules installed during the import. Because the MissingContentEvent does not have it the Default content module cannot determine what content it is going to create and therefore it can't respond to the event correctly.

See πŸ“Œ Add handling of ConfigEvent::IMPORT_MISSING_CONTENT Needs review for the contrib issue this blocks

Proposed resolution

Add the ConfigIMporter object to the event.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
ConfigurationΒ  β†’

Last updated 2 days ago

Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

Live updates comments and jobs are added and updated live.
  • Contributed project blocker

    It denotes an issue that prevents porting of a contributed project to the stable version of Drupal due to missing APIs, regressions, and so on.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024