protected function buildContextInstance(array $contextProperties) { $contextProperties = $this->removeDeprecatedProperties($contextProperties); return new ContentContext($contextProperties['workspaceName'], $contextProperties['currentDateTime'], $contextProperties['dimensions'], $contextProperties['targetDimensions'], $contextProperties['invisibleContentShown'], $contextProperties['removedContentShown'], $contextProperties['inaccessibleContentShown'], $contextProperties['currentSite'], $contextProperties['currentDomain']); }