function DrupalDiffFormatter::contextLine

Note: you should HTML-escape parameter before calling this.

1 call to DrupalDiffFormatter::contextLine()
DrupalDiffFormatter::_context in drupal/core/lib/Drupal/Component/Diff/DiffEngine.php

File

drupal/core/lib/Drupal/Component/Diff/DiffEngine.php, line 1171
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 contextLine($line) {
  return array(
    ' ',
    array(
      'data' => theme('diff_content_line', array(
        'line' => $line,
      )),
      'class' => 'diff-context',
    ),
  );
}