Skip to content

Commit

Permalink
TASK: Remove Neos.Node.inBackend() and Neos.Node.isLive() eel helper
Browse files Browse the repository at this point in the history
It was deprecated in #4505 in favor of `${userInterfaceMode.isEdit}`.
Since the ui is adjusted in neos/neos-ui#3618 it can now be removed.
  • Loading branch information
mficzel committed Sep 20, 2023
1 parent cbf47bf commit 41651f6
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions Neos.Neos/Classes/Fusion/Helper/NodeHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit 41651f6

Please sign in to comment.