private function EvaluationCode::updateGetFetchUrlBase in Drupal 8 upgrade evaluation 7
Same name and namespace in other branches
- 6 includes/EvaluationCode.php \Upgrade_check\EvaluationCode::updateGetFetchUrlBase()
Returns the base of the URL to fetch available update data for a project.
Parameters
$project: The array of project information from update_get_projects().
Return value
The base of the URL used for fetching available update data. This does not include the path elements to specify a particular project, version, site_key, etc.
See also
1 call to EvaluationCode::updateGetFetchUrlBase()
- EvaluationCode::updateBuildFetchUrl in includes/
EvaluationCode.php - Generates the URL to fetch information about project updates.
File
- includes/
EvaluationCode.php, line 244
Class
Namespace
Upgrade_checkCode
private function updateGetFetchUrlBase($project) {
if (!empty($project['info']['project status url'])) {
return $project['info']['project status url'];
}
module_load_include('module', 'update');
return variable_get('update_fetch_url', UPDATE_DEFAULT_URL);
}