public static renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : string | ||
$arguments | array | |
$renderChildrenClosure | Closure | |
$renderingContext | TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface | |
return | string |
public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
{
$value = $arguments['value'];
if ($value === null) {
$value = $renderChildrenClosure();
}
if (UnicodeUtilityFunctions::strlen($value) > $arguments['maxCharacters']) {
return UnicodeUtilityFunctions::substr($value, 0, $arguments['maxCharacters']) . $arguments['append'];
}
return $value;
}