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