protected function setContentStates(Content $content, array $contentStates) { foreach ($contentStates as $contentStateGroupId => $contentState) { $this->objectStateHandler->setContentState($content->versionInfo->contentInfo->id, $contentStateGroupId, $contentState->id); } }