Neos.Fusion/Classes/Core/Runtime.php
protected function evaluateProcessors($valueToProcess, $configurationWithEventualProcessors, $fusionPath, AbstractFusionObject $contextObject = null)
    {
        if (isset($configurationWithEventualProcessors['__meta']['process'])) {
            $processorConfiguration = $configurationWithEventualProcessors['__meta']['process'];
            $positionalArraySorter = new PositionalArraySorter($processorConfiguration, '__meta.position');
            foreach ($positionalArraySorter->getSortedKeys() as $key) {
                $processorPath = $fusionPath . '/__meta/process/' . $key;
                if ($this->evaluateIfCondition($processorConfiguration[$key], $processorPath, $contextObject) === false) {
                    continue;
                }
                if (isset($processorConfiguration[$key]['expression'])) {
                    $processorPath .= '/expression';
                }

                $this->pushContext('value', $valueToProcess);
                $result = $this->evaluateInternal($processorPath, self::BEHAVIOR_EXCEPTION, $contextObject);
                if ($this->getLastEvaluationStatus() !== static::EVALUATION_SKIPPED) {
                    $valueToProcess = $result;
                }
                $this->popContext();
            }
        }

        return $valueToProcess;
    }
protected function evaluateProcessors($valueToProcess, $configurationWithEventualProcessors, $fusionPath, AbstractFusionObject $contextObject = null)
    {
        if (isset($configurationWithEventualProcessors['__meta']['process'])) {
            $processorConfiguration = $configurationWithEventualProcessors['__meta']['process'];
            $positionalArraySorter = new PositionalArraySorter($processorConfiguration, '__meta.position');
            foreach ($positionalArraySorter->getSortedKeys() as $key) {
                $processorPath = $fusionPath . '/__meta/process/' . $key;
                if ($this->evaluateIfCondition($processorConfiguration[$key], $processorPath, $contextObject) === false) {
                    continue;
                }
                if (isset($processorConfiguration[$key]['expression'])) {
                    $processorPath .= '/expression';
                }

                $this->pushContext('value', $valueToProcess);
                $result = $this->evaluateInternal($processorPath, self::BEHAVIOR_EXCEPTION, $contextObject);
                if ($this->getLastEvaluationStatus() !== static::EVALUATION_SKIPPED) {
                    $valueToProcess = $result;
                }
                $this->popContext();
            }
        }

        return $valueToProcess;
    }
protected function evaluateProcessors ( $ valueToProcess , $ configurationWithEventualProcessors , $ fusionPath , AbstractFusionObject $ contextObject = null ) { if ( isset ( $ configurationWithEventualProcessors [ '__meta' ] [ 'process' ] ) ) { $ processorConfiguration = $ configurationWithEventualProcessors [ '__meta' ] [ 'process' ] ; $ positionalArraySorter = new PositionalArraySorter ( $ processorConfiguration , '__meta.position' ) ; foreach ( $ positionalArraySorter -> getSortedKeys ( ) as $ key ) { $ processorPath = $ fusionPath . '/__meta/process/' . $ key ; if ( $ this -> evaluateIfCondition ( $ processorConfiguration [ $ key ] , $ processorPath , $ contextObject ) === false ) { continue ; } if ( isset ( $ processorConfiguration [ $ key ] [ 'expression' ] ) ) { $ processorPath .= '/expression' ; } $ this -> pushContext ( 'value' , $ valueToProcess ) ; $ result = $ this -> evaluateInternal ( $ processorPath , self :: BEHAVIOR_EXCEPTION , $ contextObject ) ; if ( $ this -> getLastEvaluationStatus ( ) !== static :: EVALUATION_SKIPPED ) { $ valueToProcess = $ result ; } $ this -> popContext ( ) ; } } return $ valueToProcess ; }
Evaluate processors on given value.

@param mixed $valueToProcess
@param array $configurationWithEventualProcessors
@param string $fusionPath
@param AbstractFusionObject $contextObject
@return mixed
Evaluate processors on given value .