2c2 < index 28d4f56..7af11cf 100644 --- > index 28d4f56..2e2fcdd 100644 5c5,14 < @@ -277,6 +277,7 @@ class PluginRevisionController extends ControllerBase { --- > @@ -269,7 +269,7 @@ class PluginRevisionController extends ControllerBase { > * Revision id of the left revision. > * @param $right_revision_id > * Revision id of the right revision. > - * @param $filter > + * @param $layout > * (optional) The filter added to the route. > * @param $layout_options > * (optional) The layout options provided by the selected layout. > @@ -277,7 +277,8 @@ class PluginRevisionController extends ControllerBase { 8a18 > - public function diffRoute(EntityInterface $entity, $left_revision_id, $right_revision_id, $filter = NULL, $layout_options = NULL) { 10c20 < public function diffRoute(EntityInterface $entity, $left_revision_id, $right_revision_id, $filter = NULL, $layout_options = NULL) { --- > + public static function diffRoute(EntityInterface $entity, $left_revision_id, $right_revision_id, $layout = NULL, $layout_options = NULL) { 12a23,34 > if ($entity->getEntityTypeId() == 'node') { > @@ -291,8 +292,8 @@ class PluginRevisionController extends ControllerBase { > 'left_revision' => $left_revision_id, > 'right_revision' => $right_revision_id, > ]; > - if ($filter) { > - $route_parameters['filter'] = $filter; > + if ($layout) { > + $route_parameters['filter'] = $layout; > } > $options = []; > if ($layout_options) { 14c36 < index 5148a2e..1e2c6a9 100644 --- > index 5148a2e..8c0f1f6 100644 25,27c47 < @@ -142,23 +143,24 @@ abstract class DiffLayoutBase extends PluginBase implements DiffLayoutInterface, < * @return array < * The filter options. --- > @@ -144,21 +145,24 @@ abstract class DiffLayoutBase extends PluginBase implements DiffLayoutInterface, 29,30c49 < - protected function buildFilterNavigation(EntityInterface $entity, EntityInterface $left_revision, EntityInterface $right_revision, $layout, $active_filter) { < + protected function buildFilterNavigation(EntityInterface $entity, EntityInterface $left_revision, EntityInterface $right_revision, $active_filter) { --- > protected function buildFilterNavigation(EntityInterface $entity, EntityInterface $left_revision, EntityInterface $right_revision, $layout, $active_filter) { 41,43c60,63 < + $left_revision, < + $right_revision, < + $active_filter --- > + $left_revision->getRevisionId(), > + $right_revision->getRevisionId(), > + $layout, > + 'raw' 54,56c74,77 < + $left_revision, < + $right_revision, < + $active_filter --- > + $left_revision->getRevisionId(), > + $right_revision->getRevisionId(), > + $layout, > + 'strip_tags' 62c83 < index 6540016..0de1f66 100644 --- > index 6f3ca6a..d28f47c 100644 94,96c115,117 < + $left_revision, < + $right_revision, < + 'html_diff' --- > + $left_revision->getRevisionId(), > + $right_revision->getRevisionId(), > + 'visual_inline'