You are here

public function ConfigurationImportManager::alterConfiguration in Configuration Management 7.3

1 call to ConfigurationImportManager::alterConfiguration()
ConfigurationImportManager::resolveDependencies in src/Helpers/ConfigurationImportManager.php

File

src/Helpers/ConfigurationImportManager.php, line 186
ConfigurationExportManager.php handles the export of configurations.

Class

ConfigurationImportManager

Namespace

Configuration\Helpers

Code

public function alterConfiguration(Configuration $configuration) {
  $alter = $this->configuration_manager
    ->settings()
    ->get('alter');
  if (!empty($alter) && !empty($alter[$configuration
    ->getIdentifier()])) {
    foreach ($alter[$configuration
      ->getIdentifier()] as $processor_name => $properties) {
      $processor = $this->configuration_manager
        ->getProccesor($processor_name);
      $processor
        ->revert($configuration, $properties);
    }
  }
}