private function EvaluationCode::updateBuildFetchUrl in Drupal 8 upgrade evaluation 7
Same name and namespace in other branches
- 6 includes/EvaluationCode.php \Upgrade_check\EvaluationCode::updateBuildFetchUrl()
Generates the URL to fetch information about project updates.
1 call to EvaluationCode::updateBuildFetchUrl()
- EvaluationCode::updateProcessFetchTask in includes/
EvaluationCode.php - Processes a task to fetch available update data for a single project.
File
- includes/
EvaluationCode.php, line 214
Class
Namespace
Upgrade_checkCode
private function updateBuildFetchUrl($data, $site_key = '', $old = FALSE) {
$name = $data['name'];
$url = $this
->updateGetFetchUrlBase($data);
$version = !empty($old) ? $this->oldVersion : $this->version;
$url .= '/' . $name . '/' . $version;
if (!empty($site_key) && strpos($data['type'], 'disabled') === FALSE) {
$url .= strpos($url, '?') !== FALSE ? '&' : '?';
$url .= 'site_key=';
$url .= rawurlencode($site_key);
if (!empty($data['info']['version'])) {
$url .= '&version=';
$url .= rawurlencode($data['info']['version']);
}
}
return $url;
}