We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40e9f53 commit e70c72eCopy full SHA for e70c72e
modules/next/src/NextEntityTypeManager.php
@@ -74,7 +74,7 @@ public function getEntityFromRouteMatch(RouteMatchInterface $route_match): ?Enti
74
}
75
76
if ($route_match->getRouteName() === 'entity.node.latest_version') {
77
- $node_revision = $route_match->getParameter('node')->getRevisionId();
+ return $route_match->getParameter('node');
78
79
80
return $this->entityTypeManager->getStorage('node')->loadRevision($node_revision);
0 commit comments