You are here

protected static function InPlaceUpdate::buildUrl in Automatic Updates 7

Build a project quasi-patch download URL.

Parameters

string $project_name: The project name.

string $file_name: The file name.

Return value

string The URL endpoint with for an extension.

1 call to InPlaceUpdate::buildUrl()
InPlaceUpdate::getArchive in ./InPlaceUpdate.php
Get an archive with the quasi-patch contents.

File

./InPlaceUpdate.php, line 424

Class

InPlaceUpdate
Class to apply in-place updates.

Code

protected static function buildUrl($project_name, $file_name) {
  $uri = ltrim(variable_get('automatic_updates_download_uri', 'https://www.drupal.org/in-place-updates'), '/');
  return "{$uri}/{$project_name}/{$file_name}";
}