Pagekit\Application\UrlProvider::getStatic PHP Метод

getStatic() публичный Метод

Gets the URL to a path resource.
public getStatic ( string $path, mixed $parameters = [], mixed $referenceType = UrlGenerator::ABSOLUTE_PATH ) : string
$path string
$parameters mixed
$referenceType mixed
Результат string
    public function getStatic($path, $parameters = [], $referenceType = UrlGenerator::ABSOLUTE_PATH)
    {
        $url = $this->file->getUrl($this->locator->get($path) ?: $path, $referenceType === self::BASE_PATH ? UrlGenerator::ABSOLUTE_PATH : $referenceType);
        if ($referenceType === self::BASE_PATH) {
            $url = substr($url, strlen($this->router->getRequest()->getBasePath()));
        }
        return $this->parseQuery($url, $parameters);
    }