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

renderChildrenWithVariableOrReturnInput() protected method

protected renderChildrenWithVariableOrReturnInput ( string $variable = null ) : mixed
$variable string
return mixed
    protected function renderChildrenWithVariableOrReturnInput($variable = null)
    {
        $as = $this->arguments['as'];
        if (true === empty($as)) {
            return $variable;
        } else {
            $variables = [$as => $variable];
            $content = $this->renderChildrenWithVariables($variables);
        }
        return $content;
    }