private function CircleCiManager::buildCircleCiApiBasePathForEnvironment in Build Hooks 3.x
Same name and namespace in other branches
- 8.2 modules/build_hooks_circleci/src/CircleCiManager.php \Drupal\build_hooks_circleci\CircleCiManager::buildCircleCiApiBasePathForEnvironment()
Build a url to call circle ci depending on the frontend environment config.
Parameters
array $config: The configuration array from the plugin.
Return value
string The url to call.
1 call to CircleCiManager::buildCircleCiApiBasePathForEnvironment()
- CircleCiManager::buildCircleCiApiRetrieveBuildsUrl in modules/
build_hooks_circleci/ src/ CircleCiManager.php - Build the url to retrieve latest builds from circle ci for an environment.
File
- modules/
build_hooks_circleci/ src/ CircleCiManager.php, line 73
Class
- CircleCiManager
- Defines a service for managing Circle CI deployments.
Namespace
Drupal\build_hooks_circleciCode
private function buildCircleCiApiBasePathForEnvironment(array $config) {
$basePath = self::CIRCLE_CI_BASE_PATH;
$platform = self::CIRCLE_CI_HOSTED_PLATFORM;
$project = $config['project'];
return "{$basePath}/project/{$platform}/{$project}/";
}