It already skips version-1 style documentation keys that begin with "@".
It should also copy them into the "description" metadata key for
version 2.
Change-Id: I460568f074b9c0256eb6bbbcd0b046b16e0d8790
$json['config'][$name]['merge_strategy'] = $value[ExtensionRegistry::MERGE_STRATEGY];
unset( $value[ExtensionRegistry::MERGE_STRATEGY] );
}
+ if ( isset( $config["@$name"] ) ) {
+ // Put 'description' first for better human-legibility.
+ $json['config'][$name] = array_merge(
+ [ 'description' => $config["@$name"] ],
+ $json['config'][$name]
+ );
+ }
}
}
}