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.
Problem/Motivation
I am searching for a way to import config in sync directory for automated PHPunit tests and when looking at the code of the config module, I found the following lines:
https://cgit.drupalcode.org/drupal/tree/core/modules/config/src/Form/Con...
$batch = [
'operations' => [],
'finished' => [get_class($this), 'finishBatch'],
'title' => t('Synchronizing configuration'),
'init_message' => t('Starting configuration synchronization.'),
'progress_message' => t('Completed step @current of @total.'),
'error_message' => t('Configuration synchronization has encountered an error.'),
'file' => __DIR__ . '/../../config.admin.inc',
];
But I can't find any config.admin.inc file in the code. Is it normal?
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#2 | 2950709-2.patch | 798 bytes | idebr |
Comments
Comment #2
idebr CreditAttribution: idebr at ezCompany commentedconfig.admin.inc was removed in #1987660: Convert config_sync() to a new style controller, so this file include can be removed. The 'finished' callback is available in the current file.
Comment #3
borisson_This looks great and it passes the tests.
Comment #4
alexpottCommitted and pushed 1eae4dc7dc to 8.6.x and 7a791f8dc6 to 8.5.x. Thanks!
Yep this doesn't break because we do this:
Crediting @Grimreaper for finding this and opening the issue.
Backport to 8.5.x cause this is a bug.