public function ReversibleConfigDiffer::diff in Update helper 8
Same name and namespace in other branches
- 2.x src/ReversibleConfigDiffer.php \Drupal\update_helper\ReversibleConfigDiffer::diff()
Calculates differences between config.
The two arrays are "normalized" and split into lines to compare differences. It is up to the particular implementing class to decide what normalizing means.
Parameters
array|null $source: Source config.
array|null $target: Target config.
Return value
\Drupal\Component\Diff\Diff Diff object for displaying line-by-line differences between source and target config.
Overrides ConfigDiffer::diff
File
- src/
ReversibleConfigDiffer.php, line 104
Class
- ReversibleConfigDiffer
- Overwrite of config updater differ.
Namespace
Drupal\update_helperCode
public function diff($source, $target) {
$source = $this
->stripIgnore($source);
$target = $this
->stripIgnore($target);
return parent::diff($source, $target);
}