From 931304f7ba76eccee6508c8fe63c13a813bcd239 Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Sun, 16 Jun 2024 11:22:08 +0200 Subject: [PATCH] TASK: Adjust `Neos.Node.serializedNodeAddress` to use new node address --- Neos.Neos/Classes/Fusion/Helper/NodeHelper.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Neos.Neos/Classes/Fusion/Helper/NodeHelper.php b/Neos.Neos/Classes/Fusion/Helper/NodeHelper.php index 3efcbad4b8e..5317ca9a715 100644 --- a/Neos.Neos/Classes/Fusion/Helper/NodeHelper.php +++ b/Neos.Neos/Classes/Fusion/Helper/NodeHelper.php @@ -21,13 +21,12 @@ use Neos\ContentRepository\Core\Projection\ContentGraph\Filter\FindAncestorNodesFilter; use Neos\ContentRepository\Core\Projection\ContentGraph\Node; use Neos\ContentRepository\Core\Projection\ContentGraph\NodePath; -use Neos\ContentRepository\Core\Projection\NodeHiddenState\NodeHiddenStateFinder; +use Neos\ContentRepository\Core\SharedModel\Node\NodeAddress; use Neos\ContentRepositoryRegistry\ContentRepositoryRegistry; use Neos\Eel\ProtectedContextAwareInterface; use Neos\Flow\Annotations as Flow; use Neos\Neos\Domain\Exception; use Neos\Neos\Domain\Service\NodeTypeNameFactory; -use Neos\Neos\FrontendRouting\NodeAddressFactory; use Neos\Neos\Presentation\VisualNodePath; use Neos\Neos\Utility\NodeTypeWithFallbackProvider; @@ -155,11 +154,7 @@ public function isNodeTypeExistent(Node $node): bool public function serializedNodeAddress(Node $node): string { - $contentRepository = $this->contentRepositoryRegistry->get( - $node->contentRepositoryId - ); - $nodeAddressFactory = NodeAddressFactory::create($contentRepository); - return $nodeAddressFactory->createFromNode($node)->serializeForUri(); + return NodeAddress::fromNode($node)->toJson(); } public function subgraphForNode(Node $node): ContentSubgraphInterface