CacheBuster::getJoiner PHP Метод

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

Determine the joiner required to append the cache busting string. This checks if the URL contains query string params and returns the appropriate joiner.
protected getJoiner ( string $url = '' ) : string
$url string The URL to check.
Результат string The joiner char (either '?' or '&')
    protected function getJoiner($url = '')
    {
        return preg_match('/\\?/', $url) ? '&' : '?';
    }