You are here

protected function ConfigHandler::getExpectedConfig in Update helper 8

Same name and namespace in other branches
  1. 2.x src/ConfigHandler.php \Drupal\update_helper\ConfigHandler::getExpectedConfig()

Get list of expected configuration on not updated system.

Parameters

array $diffs: List of diff edits.

Return value

array Return configuration array that is expected on old system.

1 call to ConfigHandler::getExpectedConfig()
ConfigHandler::generatePatchFile in src/ConfigHandler.php
Generate patch from changed configuration.

File

src/ConfigHandler.php, line 242

Class

ConfigHandler
Configuration handler.

Namespace

Drupal\update_helper

Code

protected function getExpectedConfig(array $diffs) {
  $list_expected = [];
  foreach ($diffs as $diff_op) {
    if (!empty($diff_op->orig)) {
      $list_expected = array_merge($list_expected, $diff_op->orig);
    }
  }
  return $this->configDiffTransformer
    ->reverseTransform($list_expected);
}