diff -u b/src/Plugin/diff/Layout/VisualInlineDiffLayout.php b/src/Plugin/diff/Layout/VisualInlineDiffLayout.php --- b/src/Plugin/diff/Layout/VisualInlineDiffLayout.php +++ b/src/Plugin/diff/Layout/VisualInlineDiffLayout.php @@ -144,7 +144,7 @@ $build['view_mode'] = [ '#type' => 'item', '#title' => $this->t('View mode'), - '#weigth' => 2, + '#weight' => 3, '#prefix' => '
', '#suffix' => '
', ]; @@ -154,15 +154,16 @@ '#prefix' => '
', '#suffix' => '
', ]; - $build['diff_revisions'] = [ '#type' => 'item', '#title' => $this->t('Comparing:'), + '#weight' => 0, ]; $build['diff_revisions'][] = [ '#markup' => $this->buildRevisionLink($left_revision), + '#suffix' => '
', ]; - $build['diff_revisions2'][] = [ + $build['diff_revisions'][] = [ '#markup' => $this->buildRevisionLink($right_revision), ]; $view_builder = $this->entityTypeManager->getViewBuilder($entity->getEntityTypeId()); @@ -183,7 +184,10 @@ $this->htmlDiff->setNewHtml($html_2); $this->htmlDiff->build(); - $build['diff'] = ['#markup' => $this->htmlDiff->getDifference()]; + $build['diff'] = [ + '#markup' => $this->htmlDiff->getDifference(), + '#weight' => 10, + ]; $build['#attached']['library'][] = 'diff/diff.html_diff'; return $build; only in patch2: unchanged: --- a/diff.module +++ b/diff.module @@ -76,9 +76,6 @@ function diff_help($route_name, RouteMatchInterface $route_match) { $output .= ''; return $output; - case 'diff.revisions_diff': - return '

' . t('Comparing two revisions:') . '

'; - case 'diff.revision_overview': return '

' . t('Revisions allow you to track differences between multiple versions of your content, and revert to older versions.') . '

'; only in patch2: unchanged: --- a/src/Controller/PluginRevisionController.php +++ b/src/Controller/PluginRevisionController.php @@ -140,7 +140,7 @@ class PluginRevisionController extends ControllerBase { $build['diff_layout'] = [ '#type' => 'item', '#title' => $this->t('Layout'), - '#weigth' => 1, + '#weight' => 2, '#prefix' => '
', '#suffix' => '
', ]; @@ -228,7 +228,7 @@ class PluginRevisionController extends ControllerBase { $element['diff_navigation'] = [ '#type' => 'item', '#title' => $this->t('Navigation'), - '#weigth' => 0, + '#weight' => 1, ]; $i = 0; // Find the previous revision. only in patch2: unchanged: --- a/src/Plugin/diff/Layout/SplitFieldsDiffLayout.php +++ b/src/Plugin/diff/Layout/SplitFieldsDiffLayout.php @@ -97,7 +97,7 @@ class SplitFieldsDiffLayout extends DiffLayoutBase { $build['filter'] = [ '#type' => 'item', '#title' => $this->t('Filter'), - '#weigth' => 2, + '#weight' => 3, '#prefix' => '
', '#suffix' => '
', ]; @@ -155,6 +155,7 @@ class SplitFieldsDiffLayout extends DiffLayoutBase { '#type' => 'table', '#header' => $diff_header, '#rows' => $diff_rows, + '#weight' => 10, '#empty' => $this->t('No visible changes'), '#attributes' => [ 'class' => ['diff'], only in patch2: unchanged: --- a/src/Plugin/diff/Layout/UnifiedFieldsDiffLayout.php +++ b/src/Plugin/diff/Layout/UnifiedFieldsDiffLayout.php @@ -97,7 +97,7 @@ class UnifiedFieldsDiffLayout extends DiffLayoutBase { $build['filter'] = [ '#type' => 'item', '#title' => $this->t('Filter'), - '#weigth' => 2, + '#weight' => 3, '#prefix' => '
', '#suffix' => '
', ]; @@ -213,6 +213,7 @@ class UnifiedFieldsDiffLayout extends DiffLayoutBase { '#type' => 'table', '#header' => $diff_header, '#rows' => $diff_rows, + '#weight' => 10, '#empty' => $this->t('No visible changes'), '#attributes' => [ 'class' => ['diff'],