From 41651f6116a4ec3d7cd2126bee949eee37970cbe Mon Sep 17 00:00:00 2001 From: Martin Ficzel Date: Wed, 20 Sep 2023 18:44:12 +0200 Subject: [PATCH] TASK: Remove `Neos.Node.inBackend()` and `Neos.Node.isLive()` eel helper It was deprecated in https://github.com/neos/neos-development-collection/pull/4505 in favor of `${userInterfaceMode.isEdit}`. Since the ui is adjusted in https://github.com/neos/neos-ui/pull/3618 it can now be removed. --- .../Classes/Fusion/Helper/NodeHelper.php | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/Neos.Neos/Classes/Fusion/Helper/NodeHelper.php b/Neos.Neos/Classes/Fusion/Helper/NodeHelper.php index 0b3826d337f..9530edde9d6 100644 --- a/Neos.Neos/Classes/Fusion/Helper/NodeHelper.php +++ b/Neos.Neos/Classes/Fusion/Helper/NodeHelper.php @@ -95,18 +95,6 @@ public function labelForNode(Node $node): NodeLabelToken return new NodeLabelToken($node); } - /** - * @param Node $node - * @return bool - * @deprecated Remove before Neos 9.0 !!! Use ${userInterfaceMode.isEdit || userInterfaceMode.isPreview} instead - */ - public function inBackend(Node $node): bool - { - $contentRepository = $this->contentRepositoryRegistry->get($node->subgraphIdentity->contentRepositoryId); - $nodeAddressFactory = NodeAddressFactory::create($contentRepository); - return !$nodeAddressFactory->createFromNode($node)->isInLiveWorkspace(); - } - /** * @param Node $node * @return int @@ -132,13 +120,6 @@ public function path(Node $node): string return AbsoluteNodePath::fromLeafNodeAndAncestors($node, $ancestors)->serializeToString(); } - public function isLive(Node $node): bool - { - $contentRepository = $this->contentRepositoryRegistry->get($node->subgraphIdentity->contentRepositoryId); - $nodeAddressFactory = NodeAddressFactory::create($contentRepository); - return $nodeAddressFactory->createFromNode($node)->isInLiveWorkspace(); - } - /** * If this node type or any of the direct or indirect super types * has the given name.