yii\web\UrlManager::getUrlFromCache PHP Метод

getUrlFromCache() защищенный Метод

Get URL from internal cache if exists
См. также: createUrl()
С версии: 2.0.8
protected getUrlFromCache ( string $cacheKey, string $route, array $params ) : boolean | string
$cacheKey string generated cache key to store data.
$route string the route (e.g. `site/index`).
$params array rule params.
Результат boolean | string the created URL
    protected function getUrlFromCache($cacheKey, $route, $params)
    {
        if (!empty($this->_ruleCache[$cacheKey])) {
            foreach ($this->_ruleCache[$cacheKey] as $rule) {
                /* @var $rule UrlRule */
                if (($url = $rule->createUrl($this, $route, $params)) !== false) {
                    return $url;
                }
            }
        } else {
            $this->_ruleCache[$cacheKey] = [];
        }
        return false;
    }