DiffFormatter::$line_stats

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

The line stats.

Type: array

File

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

Class

DiffFormatter
A class to format Diffs

Namespace

Drupal\Component\Diff

Code

protected $line_stats = [
    'counter' => [
        'x' => 0,
        'y' => 0,
    ],
    'offset' => [
        'x' => 0,
        'y' => 0,
    ],
];

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