5 use Drupal\Core\Entity\ContentEntityInterface;
6 use Drupal\Core\Plugin\PluginFormInterface;
7 use Drupal\Component\Plugin\ConfigurablePluginInterface;
10 * Builds a diff layout.
12 interface DiffLayoutInterface extends PluginFormInterface, ConfigurablePluginInterface {
15 * Builds a diff comparison between two revisions.
17 * This method is responsible for building the diff comparison between
18 * revisions of the same entity. It can build a table, navigation links and
19 * headers of a diff comparison.
21 * @param \Drupal\Core\Entity\ContentEntityInterface $left_revision
23 * @param \Drupal\Core\Entity\ContentEntityInterface $right_revision
25 * @param \Drupal\Core\Entity\ContentEntityInterface $entity
29 * The modified build array that the plugin builds.
31 public function build(ContentEntityInterface $left_revision, ContentEntityInterface $right_revision, ContentEntityInterface $entity);