DiffFormatter

A class to format Diffs

This class formats the diff in classic diff format. It is intended that this class be customized via inheritance, to obtain fancier outputs. @todo document @private @subpackage DifferenceEngine

Hierarchy

File

core/lib/Drupal/Component/Diff/DiffFormatter.php, line 17

Namespace

Drupal\Component\Diff

Members

Name Modifiers Type Description
DiffFormatter::$leading_context_lines public property Number of leading context "lines" to preserve.
DiffFormatter::$show_header public property Should a block header be shown?
DiffFormatter::$trailing_context_lines public property Number of trailing context "lines" to preserve.
DiffFormatter::format public function Format a diff.
DiffFormatter::_added protected function
DiffFormatter::_block protected function
DiffFormatter::_block_header protected function
DiffFormatter::_changed protected function
DiffFormatter::_context protected function
DiffFormatter::_deleted protected function
DiffFormatter::_end_block protected function
DiffFormatter::_end_diff protected function
DiffFormatter::_lines protected function
DiffFormatter::_start_block protected function
DiffFormatter::_start_diff protected function
doc_Drupal
2016-10-29 09:02:23
Comments
Leave a Comment

Please login to continue.