Skip to content

Commit

Permalink
TASK: Remove Neos.Node.getNodeType
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Oct 16, 2024
1 parent 576e518 commit a56f25f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions Neos.Neos/Classes/Fusion/Helper/NodeHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,12 @@
use Neos\Neos\Domain\NodeLabel\NodeLabelGeneratorInterface;
use Neos\Neos\Domain\Service\NodeTypeNameFactory;
use Neos\Neos\Presentation\VisualNodePath;
use Neos\Neos\Utility\NodeTypeWithFallbackProvider;

/**
* Eel helper for ContentRepository Nodes
*/
class NodeHelper implements ProtectedContextAwareInterface
{
use NodeTypeWithFallbackProvider {
getNodeType as legacyGetNodeTypeWithFallback;
}

#[Flow\Inject]
protected ContentRepositoryRegistry $contentRepositoryRegistry;

Expand Down Expand Up @@ -169,14 +164,6 @@ public function isNodeTypeExistent(Node $node): bool
return $contentRepository->getNodeTypeManager()->hasNodeType($node->nodeTypeName);
}

/**
* @deprecated with 9.0.0-beta14 please use Neos.Node.nodeType() instead and dont rely on the fallback behaviour
*/
public function getNodeType(Node $node): NodeType
{
return $this->legacyGetNodeTypeWithFallback($node);
}

/**
* @internal experimental API without documentation and clear use-case
*/
Expand Down

0 comments on commit a56f25f

Please sign in to comment.