Skip to content

Commit

Permalink
TASK: Remove b/c layer Node::getLabel()
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Jul 3, 2024
1 parent 8d9a01f commit e33ebab
Showing 1 changed file with 0 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,28 +154,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
*/
Expand Down

0 comments on commit e33ebab

Please sign in to comment.