DmitryDulepov\Realurl\Encoder\UrlEncoder::fetchFromUrlCache PHP Method

fetchFromUrlCache() protected method

Attempts to fetch the speaking URL from the url cache.
protected fetchFromUrlCache ( ) : boolean
return boolean
    protected function fetchFromUrlCache()
    {
        $result = FALSE;
        $cacheEntry = $this->cache->getUrlFromCacheByOriginalUrl($this->rootPageId, $this->originalUrl);
        if ($cacheEntry && $cacheEntry->getExpiration() === 0) {
            $this->encodedUrl = $cacheEntry->getSpeakingUrl();
            $result = TRUE;
        }
        return $result;
    }