function ConfigImporter::getNextConfigurationOperation
Same name in other branches
- 9 core/lib/Drupal/Core/Config/ConfigImporter.php \Drupal\Core\Config\ConfigImporter::getNextConfigurationOperation()
- 10 core/lib/Drupal/Core/Config/ConfigImporter.php \Drupal\Core\Config\ConfigImporter::getNextConfigurationOperation()
- 11.x core/lib/Drupal/Core/Config/ConfigImporter.php \Drupal\Core\Config\ConfigImporter::getNextConfigurationOperation()
Gets the next configuration operation to perform.
Return value
array|bool An array containing the next operation and configuration name to perform it on. If there is nothing left to do returns FALSE;
1 call to ConfigImporter::getNextConfigurationOperation()
- ConfigImporter::processConfigurations in core/
lib/ Drupal/ Core/ Config/ ConfigImporter.php - Processes configuration as a batch operation.
File
-
core/
lib/ Drupal/ Core/ Config/ ConfigImporter.php, line 708
Class
- ConfigImporter
- Defines a configuration importer.
Namespace
Drupal\Core\ConfigCode
protected function getNextConfigurationOperation() {
// The order configuration operations is processed is important. Deletes
// have to come first so that recreates can work.
foreach ($this->storageComparer
->getAllCollectionNames() as $collection) {
foreach ([
'delete',
'create',
'rename',
'update',
] as $op) {
$config_names = $this->getUnprocessedConfiguration($op, $collection);
if (!empty($config_names)) {
return [
'op' => $op,
'name' => array_shift($config_names),
'collection' => $collection,
];
}
}
}
return FALSE;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.