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

load() public method

See also: eZ\Publish\SPI\Persistence\Content\Section\Handler
public load ( $id )
    public function load($id)
    {
        $cache = $this->cache->getItem('section', $id);
        $section = $cache->get();
        if ($cache->isMiss()) {
            $this->logger->logCall(__METHOD__, array('section' => $id));
            $cache->set($section = $this->persistenceHandler->sectionHandler()->load($id))->save();
        }
        return $section;
    }