Neos.Fusion/Classes/Core/Runtime.php
protected function prepareContextForFusionObject(AbstractFusionObject $fusionObject, $fusionPath, $fusionConfiguration, $cacheContext)
    {
        if ($cacheContext['cacheForPathDisabled'] === true) {
            $contextArray = $this->getCurrentContext();
            $newContextArray = [];
            foreach ($cacheContext['configuration']['context'] as $contextVariableName) {
                if (isset($contextArray[$contextVariableName])) {
                    $newContextArray[$contextVariableName] = $contextArray[$contextVariableName];
                }
            }
        }

        if (isset($fusionConfiguration['__meta']['context'])) {
            $newContextArray = isset($newContextArray) ? $newContextArray : $this->getCurrentContext();
            foreach ($fusionConfiguration['__meta']['context'] as $contextKey => $contextValue) {
                $newContextArray[$contextKey] = $this->evaluateInternal($fusionPath . '/__meta/context/' . $contextKey, self::BEHAVIOR_EXCEPTION, $fusionObject);
            }
        }

        if (isset($newContextArray)) {
            $this->pushContextArray($newContextArray);
            return true;
        }

        return false;
    }
protected function prepareContextForFusionObject(AbstractFusionObject $fusionObject, $fusionPath, $fusionConfiguration, $cacheContext)
    {
        if ($cacheContext['cacheForPathDisabled'] === true) {
            $contextArray = $this->getCurrentContext();
            $newContextArray = [];
            foreach ($cacheContext['configuration']['context'] as $contextVariableName) {
                if (isset($contextArray[$contextVariableName])) {
                    $newContextArray[$contextVariableName] = $contextArray[$contextVariableName];
                }
            }
        }

        if (isset($fusionConfiguration['__meta']['context'])) {
            $newContextArray = isset($newContextArray) ? $newContextArray : $this->getCurrentContext();
            foreach ($fusionConfiguration['__meta']['context'] as $contextKey => $contextValue) {
                $newContextArray[$contextKey] = $this->evaluateInternal($fusionPath . '/__meta/context/' . $contextKey, self::BEHAVIOR_EXCEPTION, $fusionObject);
            }
        }

        if (isset($newContextArray)) {
            $this->pushContextArray($newContextArray);
            return true;
        }

        return false;
    }
protected function prepareContextForFusionObject ( AbstractFusionObject $ fusionObject , $ fusionPath , $ fusionConfiguration , $ cacheContext ) { if ( $ cacheContext [ 'cacheForPathDisabled' ] === true ) { $ contextArray = $ this -> getCurrentContext ( ) ; $ newContextArray = [ ] ; foreach ( $ cacheContext [ 'configuration' ] [ 'context' ] as $ contextVariableName ) { if ( isset ( $ contextArray [ $ contextVariableName ] ) ) { $ newContextArray [ $ contextVariableName ] = $ contextArray [ $ contextVariableName ] ; } } } if ( isset ( $ fusionConfiguration [ '__meta' ] [ 'context' ] ) ) { $ newContextArray = isset ( $ newContextArray ) ? $ newContextArray : $ this -> getCurrentContext ( ) ; foreach ( $ fusionConfiguration [ '__meta' ] [ 'context' ] as $ contextKey => $ contextValue ) { $ newContextArray [ $ contextKey ] = $ this -> evaluateInternal ( $ fusionPath . '/__meta/context/' . $ contextKey , self :: BEHAVIOR_EXCEPTION , $ fusionObject ) ; } } if ( isset ( $ newContextArray ) ) { $ this -> pushContextArray ( $ newContextArray ) ; return true ; } return false ; }
Possibly prepares a new context for the current FusionObject and cache context and pushes it to the stack.
Returns if a new context was pushed to the stack or not.

@param AbstractFusionObject $fusionObject
@param string $fusionPath
@param array $fusionConfiguration
@param array $cacheContext
@return boolean
@throws Exception
@throws RuntimeException
@throws SecurityException
@throws StopActionException
Possibly prepares a new context for the current FusionObject and cache context and pushes it to the stack . Returns if a new context was pushed to the stack or not .