Skip to content

Commit

Permalink
TASK: Adjust Neos.Node.serializedNodeAddress to use new node address
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Jun 16, 2024
1 parent 6d72c8a commit 931304f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Neos.Neos/Classes/Fusion/Helper/NodeHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 931304f

Please sign in to comment.