eZ\Publish\Core\Persistence\Cache\LocationHandler::changeMainLocation PHP Method

changeMainLocation() public method

See also: eZ\Publish\SPI\Persistence\Content\Location\Handler::changeMainLocation
public changeMainLocation ( $contentId, $locationId )
    public function changeMainLocation($contentId, $locationId)
    {
        $this->logger->logCall(__METHOD__, array('location' => $locationId, 'content' => $contentId));
        $this->persistenceHandler->locationHandler()->changeMainLocation($contentId, $locationId);
        $this->cache->clear('content', $contentId);
        $this->cache->clear('content', 'info', $contentId);
        $this->cache->clear('content', 'info', 'remoteId');
    }