FluidTYPO3\Vhs\ViewHelpers\Variable\Register\SetViewHelper::renderStatic PHP Метод

renderStatic() публичный статический Метод

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
Результат 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;
    }