function config_install_batch_process in Configuration installer 8
Processes the config import batch and persists the importer.
Parameters
\Drupal\Core\Config\ConfigImporter $config_importer: The batch config importer object to persist.
string $sync_step: The synchronisation step to do.
$context: The batch context.
See also
1 string reference to 'config_install_batch_process'
- config_install_batch in ./
config_installer.profile - Creates a batch for the config importer to process.
File
- ./
config_installer.profile, line 134 - Enables modules and site configuration for a minimal site installation.
Code
function config_install_batch_process(ConfigImporter $config_importer, $sync_step, &$context) {
if (!isset($context['sandbox']['config_importer'])) {
$context['sandbox']['config_importer'] = $config_importer;
}
$config_importer = $context['sandbox']['config_importer'];
$config_importer
->doSyncStep($sync_step, $context);
if ($errors = $config_importer
->getErrors()) {
if (!isset($context['results']['errors'])) {
$context['results']['errors'] = [];
}
$context['results']['errors'] += $errors;
}
}