DiffFormatter::_added

protected DiffFormatter::_added($lines) File core/lib/Drupal/Component/Diff/DiffFormatter.php, line 173 Class DiffFormatter A class to format Diffs Namespace Drupal\Component\Diff Code protected function _added($lines) { $this->_lines($lines, '>'); }

DiffFormatter::format

public DiffFormatter::format(Diff $diff) Format a diff. Parameters \Drupal\Component\Diff\Diff $diff: A Diff object. Return value string The formatted output. File core/lib/Drupal/Component/Diff/DiffFormatter.php, line 48 Class DiffFormatter A class to format Diffs Namespace Drupal\Component\Diff Code public function format(Diff $diff) { $xi = $yi = 1; $block = FALSE; $context = array(); $nlead = $this->leading_context_lines; $ntrail = $this->trailing_context_lines;

DiffFormatter::emptyLine

protected DiffFormatter::emptyLine() Creates an empty line. Return value array An array representing a table row. File core/lib/Drupal/Core/Diff/DiffFormatter.php, line 158 Class DiffFormatter Diff formatter which uses returns output that can be rendered to a table. Namespace Drupal\Core\Diff Code protected function emptyLine() { return array( ' ', ' ', ); }

DiffFormatter::deletedLine

protected DiffFormatter::deletedLine($line) Creates a deleted line. Parameters string $line: An HTML-escaped line. Return value array An array representing a table row. File core/lib/Drupal/Core/Diff/DiffFormatter.php, line 120 Class DiffFormatter Diff formatter which uses returns output that can be rendered to a table. Namespace Drupal\Core\Diff Code protected function deletedLine($line) { return array( array( 'data' => '-', 'class' => 'diff-marker', ),

DiffFormatter::contextLine

protected DiffFormatter::contextLine($line) Creates a context line. Parameters string $line: An HTML-escaped line. Return value array An array representing a table row. File core/lib/Drupal/Core/Diff/DiffFormatter.php, line 142 Class DiffFormatter Diff formatter which uses returns output that can be rendered to a table. Namespace Drupal\Core\Diff Code protected function contextLine($line) { return array( ' ', array( 'data' => ['#markup' => $line], 'class'

DiffFormatter::addedLine

protected DiffFormatter::addedLine($line) Creates an added line. Parameters string $line: An HTML-escaped line. Return value array An array representing a table row. File core/lib/Drupal/Core/Diff/DiffFormatter.php, line 98 Class DiffFormatter Diff formatter which uses returns output that can be rendered to a table. Namespace Drupal\Core\Diff Code protected function addedLine($line) { return array( array( 'data' => '+', 'class' => 'diff-marker', ), arr

DiffFormatter::$trailing_context_lines

Number of trailing context "lines" to preserve. This should be left at zero for this class, but subclasses may want to set this to other values. File core/lib/Drupal/Component/Diff/DiffFormatter.php, line 37 Class DiffFormatter A class to format Diffs Namespace Drupal\Component\Diff Code public $trailing_context_lines = 0;

DiffFormatter::$show_header

Should a block header be shown? File core/lib/Drupal/Component/Diff/DiffFormatter.php, line 21 Class DiffFormatter A class to format Diffs Namespace Drupal\Component\Diff Code public $show_header = TRUE;

DiffFormatter::$rows

The diff represented as an array of rows. Type: array File core/lib/Drupal/Core/Diff/DiffFormatter.php, line 20 Class DiffFormatter Diff formatter which uses returns output that can be rendered to a table. Namespace Drupal\Core\Diff Code protected $rows = array();

DiffFormatter::$line_stats

The line stats. Type: array File core/lib/Drupal/Core/Diff/DiffFormatter.php, line 27 Class DiffFormatter Diff formatter which uses returns output that can be rendered to a table. Namespace Drupal\Core\Diff Code protected $line_stats = array( 'counter' => array('x' => 0, 'y' => 0), 'offset' => array('x' => 0, 'y' => 0), );