diff --git a/modules/next/src/NextEntityTypeManager.php b/modules/next/src/NextEntityTypeManager.php index b0950503..97849cee 100644 --- a/modules/next/src/NextEntityTypeManager.php +++ b/modules/next/src/NextEntityTypeManager.php @@ -72,12 +72,6 @@ public function getEntityFromRouteMatch(RouteMatchInterface $route_match): ?Enti if ($node_revision instanceof NodeInterface) { return $node_revision; } - - if ($route_match->getRouteName() === 'entity.node.latest_version') { - $node_revision = $route_match->getParameter('node')->getRevisionId(); - } - - return $this->entityTypeManager->getStorage('node')->loadRevision($node_revision); } foreach ($route_match->getParameters() as $parameter) {