diff --git a/Classes/ViewHelpers/TranslateElementPropertyViewHelper.php b/Classes/ViewHelpers/TranslateElementPropertyViewHelper.php index 310b706..3343a72 100644 --- a/Classes/ViewHelpers/TranslateElementPropertyViewHelper.php +++ b/Classes/ViewHelpers/TranslateElementPropertyViewHelper.php @@ -66,7 +66,7 @@ public function render(): string } $property = $this->arguments['property']; if ($property === 'label') { - $defaultValue = $element->getLabel(); + $defaultValue = (string)$element->getLabel(); } else { $defaultValue = isset($element->getProperties()[$property]) ? (string)$element->getProperties()[$property] : ''; }