You are here

protected function UnifiedFieldsDiffLayout::buildTableHeader in Diff 8

Build the header for the diff table.

Parameters

\Drupal\Core\Entity\EntityInterface $right_revision: Revision from the right hand side.

Return value

array Header for Diff table.

1 call to UnifiedFieldsDiffLayout::buildTableHeader()
UnifiedFieldsDiffLayout::build in src/Plugin/diff/Layout/UnifiedFieldsDiffLayout.php
Builds a diff comparison between two revisions.

File

src/Plugin/diff/Layout/UnifiedFieldsDiffLayout.php, line 257

Class

UnifiedFieldsDiffLayout
Provides Unified fields diff layout.

Namespace

Drupal\diff\Plugin\diff\Layout

Code

protected function buildTableHeader(EntityInterface $right_revision) {
  $header = [];
  $header[] = [
    'data' => [
      '#markup' => $this
        ->buildRevisionLink($right_revision),
    ],
    'colspan' => 4,
  ];
  return $header;
}