private function NetlifyManager::buildNetlifyApiRetrieveBuildsUrl in Build Hooks 3.x
Same name and namespace in other branches
- 8.2 modules/build_hooks_netlify/src/NetlifyManager.php \Drupal\build_hooks_netlify\NetlifyManager::buildNetlifyApiRetrieveBuildsUrl()
Build the url to retrieve latest builds from netlify for an environment.
Parameters
array $config: The configuration array from the plugin.
Return value
string The url to call to get the builds.
1 call to NetlifyManager::buildNetlifyApiRetrieveBuildsUrl()
- NetlifyManager::retrieveLatestBuildsFromNetlifyForEnvironment in modules/
build_hooks_netlify/ src/ NetlifyManager.php - Get the latest builds from netlify for and environment.
File
- modules/
build_hooks_netlify/ src/ NetlifyManager.php, line 84
Class
- NetlifyManager
- Defines a manager service for netlify deployments.
Namespace
Drupal\build_hooks_netlifyCode
private function buildNetlifyApiRetrieveBuildsUrl(array $config) {
$netlifyConf = $this->configFactory
->get('build_hooks_netlify.settings');
$access_token = $netlifyConf
->get('netlify_api_key');
$api_id = $config['api_id'];
return self::NETLIFY_BASE_PATH . "/sites/{$api_id}/deploys?access_token={$access_token}";
}