You are here

private function CircleCiManager::buildCircleCiApiBasePathForEnvironment in Build Hooks 8.2

Same name and namespace in other branches
  1. 3.x 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
Class CircleCiManager.

Namespace

Drupal\build_hooks_circleci

Code

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}/";
}