Commit c47ce6ca authored by Mads Høgstedt Danquah's avatar Mads Høgstedt Danquah Committed by Thomas Fini Hansen
Browse files

Issue #3308593 by danquah: Add _deconfig config entry at the end of the config

parent 13d99695
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -205,7 +205,14 @@ class DeconfigStorage implements StorageInterface {
   */
  protected function implode($hideSpec, $data, $lax) {
    if ($hideSpec) {
      $data = [($lax ? '@' : '') . self::KEY => $hideSpec] + $data;
      // Add our hide spec to the end of the config-data.
      // Ideally we would want the entry mixed in with the other config
      // properties ideally sorted by key name. But, as castValue() in cores
      // StorableConfigBase will sort all Mapping config properties according to
      // its dataDefinition and leave all remaining config-entires in the end of
      // the config array.
      // So, we tag our entry to the end of the existing config to match this.
      $data += [($lax ? '@' : '') . self::KEY => $hideSpec];
    }

    return $data;