public function setContentState($contentId, $groupId, $stateId) { $this->objectStateGateway->setContentState($contentId, $groupId, $stateId); return true; }
/** * @param Content $content * @param \eZ\Publish\SPI\Persistence\Content\ObjectState[] $contentStates */ protected function setContentStates(Content $content, array $contentStates) { foreach ($contentStates as $contentStateGroupId => $contentState) { $this->objectStateHandler->setContentState($content->versionInfo->contentInfo->id, $contentStateGroupId, $contentState->id); } }