Neos\Fusion\Core\Runtime::evaluateEelExpressionOrSimpleValueWithProcessor PHP Method

evaluateEelExpressionOrSimpleValueWithProcessor() protected method

Evaluate a simple value or eel expression with processors
protected evaluateEelExpressionOrSimpleValueWithProcessor ( string $typoScriptPath, array $valueConfiguration, AbstractTypoScriptObject $contextObject = null ) : mixed
$typoScriptPath string the TypoScript path up to now
$valueConfiguration array TypoScript configuration for the value
$contextObject Neos\Fusion\TypoScriptObjects\AbstractTypoScriptObject An optional object for the "this" value inside the context
return mixed The result of the evaluation
    protected function evaluateEelExpressionOrSimpleValueWithProcessor($typoScriptPath, array $valueConfiguration, AbstractTypoScriptObject $contextObject = null)
    {
        if (isset($valueConfiguration['__eelExpression'])) {
            $evaluatedValue = $this->evaluateEelExpression($valueConfiguration['__eelExpression'], $contextObject);
        } else {
            // must be simple type, as this is the only place where this method is called.
            $evaluatedValue = $valueConfiguration['__value'];
        }
        $evaluatedValue = $this->evaluateProcessors($evaluatedValue, $valueConfiguration, $typoScriptPath, $contextObject);
        return $evaluatedValue;
    }