Skip to content

Commit

Permalink
Merge pull request #4542 from neos/90-removeNodeInBackendHelper
Browse files Browse the repository at this point in the history
TASK: Remove `Neos.Node.inBackend()` and `Neos.Node.isLive()` eel helper
  • Loading branch information
mhsdesign authored Sep 21, 2023
2 parents cbf47bf + 41651f6 commit 925ddc7
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 925ddc7

Please sign in to comment.