protected function prepareContextProperties($workspaceName, array $dimensions = null) { $contextProperties = array('workspaceName' => $workspaceName, 'invisibleContentShown' => false, 'removedContentShown' => false); if ($workspaceName !== 'live') { $contextProperties['invisibleContentShown'] = true; } if ($dimensions !== null) { $contextProperties['dimensions'] = $dimensions; } return $contextProperties; }