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 */