By mondrake on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
10.1.x
Introduced in version:
10.1.0
Issue links:
Description:
Drupal\Component\Diff\Engine\DiffEngine is deprecated and will be removed in Drupal 11. DiffEngine was used internally within the Diff component code.
The Diff component has been refactored to use the sebastianbergmann/diff package instead.
Code that makes call to the Drupal\Component\Diff\Diff class is not affected.
Drupal core was not making direct calls to DiffEngine outside of the Diff component itself; if any custom/contrib module is using it like
$eng = new DiffEngine();
$edits = $eng->diff($from_lines, $to_lines);
should refactor that code to use sebastianbergmann/diff. See examples here.
Impacts:
Module developers