function DrupalDiffFormatter::_context

Overrides DiffFormatter::_context

File

drupal/core/lib/Drupal/Component/Diff/DiffEngine.php, line 1200
A PHP diff engine for phpwiki. (Taken from phpwiki-1.3.3)

Class

DrupalDiffFormatter
Diff formatter which uses Drupal theme functions. @private @subpackage DifferenceEngine

Code

function _context($lines) {
  foreach ($lines as $line) {
    $this->rows[] = array_merge($this
      ->contextLine(check_plain($line)), $this
      ->contextLine(check_plain($line)));
  }
}