eZ\Publish\Core\Persistence\Cache\ObjectStateHandler::setContentState PHP Method

setContentState() public method

See also: eZ\Publish\SPI\Persistence\Content\ObjectState\Handler::setContentState
public setContentState ( $contentId, $groupId, $stateId )
    public function setContentState($contentId, $groupId, $stateId)
    {
        $this->logger->logCall(__METHOD__, array('contentId' => $contentId, 'groupId' => $groupId, 'stateId' => $stateId));
        $return = $this->persistenceHandler->objectStateHandler()->setContentState($contentId, $groupId, $stateId);
        $this->cache->clear('objectstate', 'byContent', $contentId, $groupId);
        return $return;
    }