Neos.ContentRepository/Classes/Domain/Service/ContextFactory.php
protected function mergeContextPropertiesWithDefaults(array $contextProperties)
    {
        $contextProperties = $this->removeDeprecatedProperties($contextProperties);

        $defaultContextProperties = [
            'workspaceName' => 'live',
            'currentDateTime' => $this->now,
            'dimensions' => [],
            'targetDimensions' => [],
            'invisibleContentShown' => false,
            'removedContentShown' => false,
            'inaccessibleContentShown' => false
        ];

        $mergedProperties = Arrays::arrayMergeRecursiveOverrule($defaultContextProperties, $contextProperties, true);

        $this->mergeDimensionValues($contextProperties, $mergedProperties);
        $this->mergeTargetDimensionContextProperties($contextProperties, $mergedProperties, $defaultContextProperties);

        return $mergedProperties;
    }
protected function mergeContextPropertiesWithDefaults(array $contextProperties)
    {
        $contextProperties = $this->removeDeprecatedProperties($contextProperties);

        $defaultContextProperties = [
            'workspaceName' => 'live',
            'currentDateTime' => $this->now,
            'dimensions' => [],
            'targetDimensions' => [],
            'invisibleContentShown' => false,
            'removedContentShown' => false,
            'inaccessibleContentShown' => false
        ];

        $mergedProperties = Arrays::arrayMergeRecursiveOverrule($defaultContextProperties, $contextProperties, true);

        $this->mergeDimensionValues($contextProperties, $mergedProperties);
        $this->mergeTargetDimensionContextProperties($contextProperties, $mergedProperties, $defaultContextProperties);

        return $mergedProperties;
    }
protected function mergeContextPropertiesWithDefaults ( array $ contextProperties ) { $ contextProperties = $ this -> removeDeprecatedProperties ( $ contextProperties ) ; $ defaultContextProperties = [ 'workspaceName' => 'live' , 'currentDateTime' => $ this -> now , 'dimensions' => [ ] , 'targetDimensions' => [ ] , 'invisibleContentShown' => false , 'removedContentShown' => false , 'inaccessibleContentShown' => false ] ; $ mergedProperties = Arrays :: arrayMergeRecursiveOverrule ( $ defaultContextProperties , $ contextProperties , true ) ; $ this -> mergeDimensionValues ( $ contextProperties , $ mergedProperties ) ; $ this -> mergeTargetDimensionContextProperties ( $ contextProperties , $ mergedProperties , $ defaultContextProperties ) ; return $ mergedProperties ; }
Merges the given context properties with sane defaults for the context implementation.

@param array $contextProperties
@return array
Merges the given context properties with sane defaults for the context implementation .