protected function prepareContextProperties($workspaceName, PropertyMappingConfigurationInterface $configuration = null, array $dimensions = null)
{
$contextProperties = array('workspaceName' => $workspaceName, 'invisibleContentShown' => false, 'removedContentShown' => false);
if ($workspaceName !== 'live') {
$contextProperties['invisibleContentShown'] = true;
if ($configuration !== null && $configuration->getConfigurationValue(\Neos\ContentRepository\TypeConverter\NodeConverter::class, self::REMOVED_CONTENT_SHOWN) === true) {
$contextProperties['removedContentShown'] = true;
}
}
if ($dimensions !== null) {
$contextProperties['dimensions'] = $dimensions;
}
return $contextProperties;
}