Skip to content

Commit

Permalink
TASK: Remove Neos.Node.inBackend() 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 68efe66
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 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 Down

0 comments on commit 68efe66

Please sign in to comment.