Neos.Fusion/Classes/Core/Cache/ContentCache.php
protected function serializeContext(array $contextVariables)
    {
        $serializedContextArray = [];
        foreach ($contextVariables as $variableName => $contextValue) {
            // TODO This relies on a converter being available from the context value type to string
            if ($contextValue !== null) {
                $serializedContextArray[$variableName]['type'] = $this->getTypeForContextValue($contextValue);
                $serializedContextArray[$variableName]['value'] = $this->propertyMapper->convert($contextValue, 'string');
            }
        }

        return $serializedContextArray;
    }
protected function serializeContext(array $contextVariables)
    {
        $serializedContextArray = [];
        foreach ($contextVariables as $variableName => $contextValue) {
            // TODO This relies on a converter being available from the context value type to string
            if ($contextValue !== null) {
                $serializedContextArray[$variableName]['type'] = $this->getTypeForContextValue($contextValue);
                $serializedContextArray[$variableName]['value'] = $this->propertyMapper->convert($contextValue, 'string');
            }
        }

        return $serializedContextArray;
    }
protected function serializeContext ( array $ contextVariables ) { $ serializedContextArray = [ ] ; foreach ( $ contextVariables as $ variableName => $ contextValue ) { // TODO This relies on a converter being available from the context value type to string if ( $ contextValue !== null ) { $ serializedContextArray [ $ variableName ] [ 'type' ] = $ this -> getTypeForContextValue ( $ contextValue ) ; $ serializedContextArray [ $ variableName ] [ 'value' ] = $ this -> propertyMapper -> convert ( $ contextValue , 'string' ) ; } } return $ serializedContextArray ; }
Generates an array of strings from the given array of context variables

@param array $contextVariables
@return array
@throws \InvalidArgumentException
Generates an array of strings from the given array of context variables