class 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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Component!Diff!DiffFormatter.php/class/DiffFormatter/8.1.x