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 (!is_string($value) && !(is_object($value) && method_exists($value, '__toString'))) {
return $value;
}
$flags = $arguments['keepQuotes'] ? ENT_NOQUOTES : ENT_COMPAT;
return htmlentities($value, $flags, $arguments['encoding'], $arguments['doubleEncode']);
}