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

load() public method

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