DiffFormatter::$leading_context_lines

Same name in other branches
  1. 9 core/lib/Drupal/Component/Diff/DiffFormatter.php \Drupal\Component\Diff\DiffFormatter::leading_context_lines
  2. 8.9.x core/lib/Drupal/Component/Diff/DiffFormatter.php \Drupal\Component\Diff\DiffFormatter::leading_context_lines
  3. 11.x core/lib/Drupal/Component/Diff/DiffFormatter.php \Drupal\Component\Diff\DiffFormatter::leading_context_lines

Number of leading context "lines" to preserve.

This should be left at zero for this class, but subclasses may want to set this to other values.

Type: leading_context_lines

File

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

Class

DiffFormatter
A class to format Diffs

Namespace

Drupal\Component\Diff

Code

public $leading_context_lines = 0;

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.