From ae14802cbe14e00072e2f07c6d8d608cebd25c8c Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Sun, 30 Jun 2024 19:33:50 +0200 Subject: [PATCH] TASK: Remove b/c layer `Node::getLabel()` --- .../Classes/Projection/ContentGraph/Node.php | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/Node.php b/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/Node.php index df5331e3d1f..fa2f9347ef1 100644 --- a/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/Node.php +++ b/Neos.ContentRepository.Core/Classes/Projection/ContentGraph/Node.php @@ -169,28 +169,6 @@ public function hasProperty(PropertyName|string $propertyName): bool return $this->properties->offsetExists($propertyName instanceof PropertyName ? $propertyName->value : $propertyName); } - /** - * Returned the node label as generated by the configured node label generator. - * - * In PHP please use Neos' {@see NodeLabelGeneratorInterface} instead. - * - * For Fusion please use the FlowQuery operation: - * ``` - * ${q(node).label()} - * ``` - * - * @deprecated will be removed before the final 9.0 release - */ - public function getLabel(): string - { - if (!class_exists(\Neos\Neos\Domain\NodeLabel\DelegatingNodeLabelRenderer::class)) { - throw new \BadMethodCallException('node labels are removed from standalone cr.'); - } - // highly illegal - /** @phpstan-ignore-next-line */ - return (new \Neos\Neos\Domain\NodeLabel\DelegatingNodeLabelRenderer())->getLabel($this); - } - /** * Checks if the node's "Read Model" identity equals with the given one */