Neos\FluidAdaptor\Core\ViewHelper\AbstractConditionViewHelper::renderResult PHP Method

renderResult() protected static method

protected static renderResult ( boolean $isConditionFullfilled, array $arguments, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : string
$isConditionFullfilled boolean
$arguments array
$renderingContext TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface
return string
    protected static function renderResult($isConditionFullfilled, array $arguments, RenderingContextInterface $renderingContext)
    {
        if ($isConditionFullfilled && isset($arguments['then'])) {
            return $arguments['then'];
        }
        if ($isConditionFullfilled && isset($arguments['__thenClosure'])) {
            return $arguments['__thenClosure']();
        }
        if (!empty($arguments['__elseClosures'])) {
            $elseIfClosures = isset($arguments['__elseifClosures']) ? $arguments['__elseifClosures'] : [];
            return static::evaluateElseClosures($arguments['__elseClosures'], $elseIfClosures, $renderingContext);
        }
        if (array_key_exists('else', $arguments)) {
            return $arguments['else'];
        }
    }