public static renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : mixed | ||
$arguments | array | |
$renderChildrenClosure | Closure | |
$renderingContext | TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface | |
Résultat | mixed |
public static function renderStatic(array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
{
if (false === $GLOBALS['TSFE'] instanceof TypoScriptFrontendController) {
return null;
}
$name = $arguments['name'];
$value = $arguments['value'];
if (null === $value) {
$value = $renderChildrenClosure();
}
$GLOBALS['TSFE']->register[$name] = $value;
return null;
}