You are here

public function WordLevelDiff::__construct in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Component/Diff/WordLevelDiff.php \Drupal\Component\Diff\WordLevelDiff::__construct()
  2. 9 core/lib/Drupal/Component/Diff/WordLevelDiff.php \Drupal\Component\Diff\WordLevelDiff::__construct()

File

core/lib/Drupal/Component/Diff/WordLevelDiff.php, line 16

Class

WordLevelDiff
@todo document @private @subpackage DifferenceEngine

Namespace

Drupal\Component\Diff

Code

public function __construct($orig_lines, $closing_lines) {
  [
    $orig_words,
    $orig_stripped,
  ] = $this
    ->_split($orig_lines);
  [
    $closing_words,
    $closing_stripped,
  ] = $this
    ->_split($closing_lines);
  parent::__construct($orig_words, $closing_words, $orig_stripped, $closing_stripped);
}