eZ\Publish\Core\Persistence\Cache\SectionHandler::assign PHP Method

assign() public method

See also: eZ\Publish\SPI\Persistence\Content\Section\Handler
public assign ( $sectionId, $contentId )
    public function assign($sectionId, $contentId)
    {
        $this->logger->logCall(__METHOD__, array('section' => $sectionId, 'content' => $contentId));
        $return = $this->persistenceHandler->sectionHandler()->assign($sectionId, $contentId);
        $this->cache->clear('content', $contentId);
        $this->cache->clear('content', 'info', $contentId);
        $this->cache->clear('content', 'info', 'remoteId');
        return $return;
    }