You are here

protected static function ModifiedFilesService::buildUrl in Automatic Updates 7

Build an extension's hash file URL.

Parameters

array $info: The extension's info.

Return value

string The URL endpoint with for an extension.

1 call to ModifiedFilesService::buildUrl()
ModifiedFilesService::getHashRequests in ./ModifiedFilesService.php
Get an iterator of extension name and hash URL.

File

./ModifiedFilesService.php, line 117

Class

ModifiedFilesService
Modified files service.

Code

protected static function buildUrl(array $info) {
  $version = $info['version'];
  $project_name = $info['project'];
  $hash_name = self::getHashName($info);
  $uri = ltrim(variable_get('automatic_updates_hashes_uri', 'https://updates.drupal.org/release-hashes'), '/');
  return "{$uri}/{$project_name}/{$version}/{$hash_name}";
}