You are here

public function ConfigurationExportManager::alterConfiguration in Configuration Management 7.3

1 call to ConfigurationExportManager::alterConfiguration()
ConfigurationExportManager::searchComplementaryConfigurations in src/Helpers/ConfigurationExportManager.php

File

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

Class

ConfigurationExportManager

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
        ->apply($configuration, $properties);
    }
  }
}