FluidTYPO3\Vhs\Traits\TemplateVariableViewHelperTrait::renderChildrenWithVariablesStatic PHP Method

renderChildrenWithVariablesStatic() protected static method

Returns the output of the renderChildren() method on $viewHelper.
protected static renderChildrenWithVariablesStatic ( array $variables, TYPO3\CMS\Fluid\Core\ViewHelper\TemplateVariableContainer $templateVariableContainer, Closure $renderChildrenClosure ) : mixed
$variables array
$templateVariableContainer TYPO3\CMS\Fluid\Core\ViewHelper\TemplateVariableContainer
$renderChildrenClosure Closure
return mixed
    protected static function renderChildrenWithVariablesStatic(array $variables, $templateVariableContainer, $renderChildrenClosure)
    {
        $backups = static::backupVariables($variables, $templateVariableContainer);
        $content = $renderChildrenClosure();
        static::restoreVariables($variables, $backups, $templateVariableContainer);
        return $content;
    }