protected function DiffFormatter::_block_header

protected DiffFormatter::_block_header($xbeg, $xlen, $ybeg, $ylen)

Overrides DiffFormatter::_block_header

File

core/lib/Drupal/Core/Diff/DiffFormatter.php, line 61

Class

DiffFormatter
Diff formatter which uses returns output that can be rendered to a table.

Namespace

Drupal\Core\Diff

Code

protected function _block_header($xbeg, $xlen, $ybeg, $ylen) {
  return array(
    array(
      'data' => $xbeg + $this->line_stats['offset']['x'],
      'colspan' => 2,
    ),
    array(
      'data' => $ybeg + $this->line_stats['offset']['y'],
      'colspan' => 2,
    )
  );
}

© 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!Core!Diff!DiffFormatter.php/function/DiffFormatter::_block_header/8.1.x