Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TASK: Remove Neos.Node.inBackend() and Neos.Node.isLive() eel helper #4542

Merged
merged 1 commit into from
Sep 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
ahaeslich marked this conversation as resolved.
Show resolved Hide resolved
*/
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
Loading