protected function SplitFieldsDiffLayout::buildTableHeader in Diff 8
Build the header for the diff table.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $left_revision: Revision from the left hand side.
\Drupal\Core\Entity\ContentEntityInterface $right_revision: Revision from the right hand side.
Return value
array Header for Diff table.
1 call to SplitFieldsDiffLayout::buildTableHeader()
- SplitFieldsDiffLayout::build in src/
Plugin/ diff/ Layout/ SplitFieldsDiffLayout.php - Builds a diff comparison between two revisions.
File
- src/
Plugin/ diff/ Layout/ SplitFieldsDiffLayout.php, line 267
Class
- SplitFieldsDiffLayout
- Provides Split fields diff layout.
Namespace
Drupal\diff\Plugin\diff\LayoutCode
protected function buildTableHeader(ContentEntityInterface $left_revision, ContentEntityInterface $right_revision) {
$header = [];
$header[] = [
'data' => [
'#markup' => $this
->buildRevisionLink($left_revision),
],
'colspan' => 3,
];
$header[] = [
'data' => [
'#markup' => $this
->buildRevisionLink($right_revision),
],
'colspan' => 3,
];
return $header;
}