You are here

public function DiffLayoutInterface::build in Diff 8

Builds a diff comparison between two revisions.

This method is responsible for building the diff comparison between revisions of the same entity. It can build a table, navigation links and headers of a diff comparison.

Parameters

\Drupal\Core\Entity\ContentEntityInterface $left_revision: The left revision.

\Drupal\Core\Entity\ContentEntityInterface $right_revision: The right revision.

\Drupal\Core\Entity\ContentEntityInterface $entity: The entity.

Return value

array The modified build array that the plugin builds.

3 methods override DiffLayoutInterface::build()
SplitFieldsDiffLayout::build in src/Plugin/diff/Layout/SplitFieldsDiffLayout.php
Builds a diff comparison between two revisions.
UnifiedFieldsDiffLayout::build in src/Plugin/diff/Layout/UnifiedFieldsDiffLayout.php
Builds a diff comparison between two revisions.
VisualInlineDiffLayout::build in src/Plugin/diff/Layout/VisualInlineDiffLayout.php
Builds a diff comparison between two revisions.

File

src/DiffLayoutInterface.php, line 31

Class

DiffLayoutInterface
Builds a diff layout.

Namespace

Drupal\diff

Code

public function build(ContentEntityInterface $left_revision, ContentEntityInterface $right_revision, ContentEntityInterface $entity);