We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40e9f53 commit dfa340dCopy full SHA for dfa340d
modules/next/src/NextEntityTypeManager.php
@@ -72,12 +72,6 @@ public function getEntityFromRouteMatch(RouteMatchInterface $route_match): ?Enti
72
if ($node_revision instanceof NodeInterface) {
73
return $node_revision;
74
}
75
-
76
- if ($route_match->getRouteName() === 'entity.node.latest_version') {
77
- $node_revision = $route_match->getParameter('node')->getRevisionId();
78
- }
79
80
- return $this->entityTypeManager->getStorage('node')->loadRevision($node_revision);
81
82
83
foreach ($route_match->getParameters() as $parameter) {
0 commit comments